Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 27, 2024
1 parent 6fa71b0 commit bd138d1
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
5 changes: 2 additions & 3 deletions custom_components/plugwise/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
COMPRESSOR_STATE,
COOLING_ENABLED,
COOLING_STATE,
COORDINATOR, # pw-beta
DHW_STATE,
DOMAIN,
FLAME_STATE,
Expand Down Expand Up @@ -100,7 +99,7 @@ async def async_setup_entry(

@callback
def _add_entities() -> None:
"Add Entities."
"""Add Entities."""
if not coordinator.new_devices:
return

Expand All @@ -121,7 +120,7 @@ def _add_entities() -> None:
LOGGER.debug(
"Add %s %s binary sensor", device[ATTR_NAME], description.translation_key
)

async_add_entities(entities)

entry.async_on_unload(coordinator.async_add_listener(_add_entities))
Expand Down
1 change: 0 additions & 1 deletion custom_components/plugwise/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
CONTROL_STATE,
COOLING_PRESENT,
COOLING_STATE,
COORDINATOR, # pw-beta
DEV_CLASS,
DOMAIN,
GATEWAY_ID,
Expand Down
1 change: 0 additions & 1 deletion custom_components/plugwise/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from homeassistant.helpers.entity_platform import AddEntitiesCallback

from .const import (
DOMAIN,
LOGGER,
LOWER_BOUND,
MAX_BOILER_TEMP,
Expand Down
1 change: 0 additions & 1 deletion custom_components/plugwise/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
AVAILABLE_SCHEDULES,
DHW_MODE,
DHW_MODES,
DOMAIN,
GATEWAY_MODE,
GATEWAY_MODES,
LOCATION,
Expand Down
1 change: 0 additions & 1 deletion custom_components/plugwise/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from .const import (
DHW_SETPOINT,
DHW_TEMP,
DOMAIN,
EL_CONS_INTERVAL,
EL_CONS_OP_CUMULATIVE,
EL_CONS_OP_INTERVAL,
Expand Down
1 change: 0 additions & 1 deletion custom_components/plugwise/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from .const import (
COOLING_ENA_SWITCH,
DHW_CM_SWITCH,
DOMAIN,
LOCK,
LOGGER,
MEMBERS,
Expand Down

0 comments on commit bd138d1

Please sign in to comment.