Skip to content

Commit fcbf488

Browse files
authored
Merge pull request #593 from nordicopen/Lint_2
Address some linter comments
2 parents 97a1286 + 7da86ef commit fcbf488

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-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."""

custom_components/easee/device_condition.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide the device conditions for easee_hass."""
2+
23
from __future__ import annotations
34

45
import voluptuous as vol

custom_components/easee/diagnostics.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Diagnostics support for Easee."""
2+
23
from __future__ import annotations
34

45
from typing import Any

custom_components/easee/system_health.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide info to system health."""
2+
23
from homeassistant.components import system_health
34
from homeassistant.core import HomeAssistant, callback
45

0 commit comments

Comments
 (0)