mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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 self.coordinator.data[CHARGER_STATUS_DESCRIPTION_KEY] in {
|
||||
ChargerStatus.CHARGING,
|
||||
ChargerStatus.DISCHARGING,
|
||||
ChargerStatus.PAUSED,
|
||||
ChargerStatus.SCHEDULED,
|
||||
}
|
||||
@ -65,6 +66,7 @@ class WallboxSwitch(WallboxEntity, SwitchEntity):
|
||||
"""Return the status of pause/resume."""
|
||||
return self.coordinator.data[CHARGER_STATUS_DESCRIPTION_KEY] in {
|
||||
ChargerStatus.CHARGING,
|
||||
ChargerStatus.DISCHARGING,
|
||||
ChargerStatus.WAITING_FOR_CAR,
|
||||
ChargerStatus.WAITING,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user