mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Wallbox switch entity state incorrect while discharging (#76530)
Switch entity state incorrect while discharging
This commit is contained in:
parent
e19e65908a
commit
a6c61cf339
@ -56,6 +56,7 @@ class WallboxSwitch(WallboxEntity, SwitchEntity):
|
|||||||
"""Return the availability of the switch."""
|
"""Return the availability of the switch."""
|
||||||
return self.coordinator.data[CHARGER_STATUS_DESCRIPTION_KEY] in {
|
return self.coordinator.data[CHARGER_STATUS_DESCRIPTION_KEY] in {
|
||||||
ChargerStatus.CHARGING,
|
ChargerStatus.CHARGING,
|
||||||
|
ChargerStatus.DISCHARGING,
|
||||||
ChargerStatus.PAUSED,
|
ChargerStatus.PAUSED,
|
||||||
ChargerStatus.SCHEDULED,
|
ChargerStatus.SCHEDULED,
|
||||||
}
|
}
|
||||||
@ -65,6 +66,7 @@ class WallboxSwitch(WallboxEntity, SwitchEntity):
|
|||||||
"""Return the status of pause/resume."""
|
"""Return the status of pause/resume."""
|
||||||
return self.coordinator.data[CHARGER_STATUS_DESCRIPTION_KEY] in {
|
return self.coordinator.data[CHARGER_STATUS_DESCRIPTION_KEY] in {
|
||||||
ChargerStatus.CHARGING,
|
ChargerStatus.CHARGING,
|
||||||
|
ChargerStatus.DISCHARGING,
|
||||||
ChargerStatus.WAITING_FOR_CAR,
|
ChargerStatus.WAITING_FOR_CAR,
|
||||||
ChargerStatus.WAITING,
|
ChargerStatus.WAITING,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user