Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-r committed Dec 6, 2024
1 parent 4030a40 commit 237e846
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion custom_components/ohme/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def async_setup_entry(
CurrentSlotBinarySensor(coordinator, hass, client),
ChargerOnlineBinarySensor(coordinator_advanced, hass, client)]

await async_add_entities(sensors, update_before_add=True)
async_add_entities(sensors, update_before_add=True)


class ConnectedBinarySensor(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ohme/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def async_setup_entry(
OhmeApproveChargeButton(coordinator, hass, client)
)

await async_add_entities(buttons, update_before_add=True)
async_add_entities(buttons, update_before_add=True)


class OhmeApproveChargeButton(OhmeEntity, ButtonEntity):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ohme/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def async_setup_entry(
PriceCapNumber(coordinators[COORDINATOR_ACCOUNTINFO], hass, client)
)

await async_add_entities(numbers, update_before_add=True)
async_add_entities(numbers, update_before_add=True)


class TargetPercentNumber(OhmeEntity, NumberEntity):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ohme/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def async_setup_entry(
SlotListSensor(coordinator, hass, client),
BatterySOCSensor(coordinator, hass, client)]

await async_add_entities(sensors, update_before_add=True)
async_add_entities(sensors, update_before_add=True)


class PowerDrawSensor(OhmeEntity, SensorEntity):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ohme/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def async_setup_entry(
"sleep_when_inactive", "power-sleep", "stealthEnabled")
)

await async_add_entities(switches, update_before_add=True)
async_add_entities(switches, update_before_add=True)


class OhmePauseChargeSwitch(OhmeEntity, SwitchEntity):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ohme/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def async_setup_entry(
numbers = [TargetTime(coordinators[COORDINATOR_CHARGESESSIONS],
coordinators[COORDINATOR_SCHEDULES], hass, client)]

await async_add_entities(numbers, update_before_add=True)
async_add_entities(numbers, update_before_add=True)


class TargetTime(OhmeEntity, TimeEntity):
Expand Down

0 comments on commit 237e846

Please sign in to comment.