Skip to content

Commit 1f2d7c7

Browse files
committedMar 1, 2025
Fix suggestions from linter
1 parent 97a1286 commit 1f2d7c7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎custom_components/easee/const.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Easee Charger constants."""
22

3-
# pylint: disable=too-many-lines
43
from pyeasee import ChargerStreamData, EqualizerStreamData
54

65
from homeassistant.components.binary_sensor import BinarySensorDeviceClass

‎custom_components/easee/controller.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ async def request_handler(self):
123123
self.request_queue.task_done()
124124

125125
await self.update_cost()
126-
"""Wait to comply with rate limit (max 10 calls/hour)"""
127-
await asyncio.sleep(1200-self.period)
126+
# Wait to comply with rate limit (max 10 calls/hour)
127+
await asyncio.sleep(1200 - self.period)
128128

129129
async def update_cost(self):
130130
"""Poll cost data and notify observers."""

0 commit comments

Comments
 (0)
Please sign in to comment.