Skip to content

Commit bd138d1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6fa71b0 commit bd138d1

File tree

6 files changed

+2
-8
lines changed

6 files changed

+2
-8
lines changed

custom_components/plugwise/binary_sensor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
COMPRESSOR_STATE,
2222
COOLING_ENABLED,
2323
COOLING_STATE,
24-
COORDINATOR, # pw-beta
2524
DHW_STATE,
2625
DOMAIN,
2726
FLAME_STATE,
@@ -100,7 +99,7 @@ async def async_setup_entry(
10099

101100
@callback
102101
def _add_entities() -> None:
103-
"Add Entities."
102+
"""Add Entities."""
104103
if not coordinator.new_devices:
105104
return
106105

@@ -121,7 +120,7 @@ def _add_entities() -> None:
121120
LOGGER.debug(
122121
"Add %s %s binary sensor", device[ATTR_NAME], description.translation_key
123122
)
124-
123+
125124
async_add_entities(entities)
126125

127126
entry.async_on_unload(coordinator.async_add_listener(_add_entities))

custom_components/plugwise/climate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
CONTROL_STATE,
2929
COOLING_PRESENT,
3030
COOLING_STATE,
31-
COORDINATOR, # pw-beta
3231
DEV_CLASS,
3332
DOMAIN,
3433
GATEWAY_ID,

custom_components/plugwise/number.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from homeassistant.helpers.entity_platform import AddEntitiesCallback
1919

2020
from .const import (
21-
DOMAIN,
2221
LOGGER,
2322
LOWER_BOUND,
2423
MAX_BOILER_TEMP,

custom_components/plugwise/select.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
AVAILABLE_SCHEDULES,
1717
DHW_MODE,
1818
DHW_MODES,
19-
DOMAIN,
2019
GATEWAY_MODE,
2120
GATEWAY_MODES,
2221
LOCATION,

custom_components/plugwise/sensor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from .const import (
3333
DHW_SETPOINT,
3434
DHW_TEMP,
35-
DOMAIN,
3635
EL_CONS_INTERVAL,
3736
EL_CONS_OP_CUMULATIVE,
3837
EL_CONS_OP_INTERVAL,

custom_components/plugwise/switch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from .const import (
2020
COOLING_ENA_SWITCH,
2121
DHW_CM_SWITCH,
22-
DOMAIN,
2322
LOCK,
2423
LOGGER,
2524
MEMBERS,

0 commit comments

Comments
 (0)