add selected engine state parameters
This commit is contained in:
1 parent
d25ed3810f
commit
2308b2a154
5 files changed
+115
-6
No files matched your search
@@ -90,9 +90,7 @@ class SystemStateSwitch(CoordinatorEntity, SwitchEntity):
|
||||
def _handle_coordinator_update(self) -> None:
|
||||
""" Handle updated data from the coordinator """
|
||||
self._attr_is_on = bool(int(self.coordinator.data['sys']))
|
||||
_LOGGER.debug("[UPDATE] Switch State: {} - is_on ? {} - state ? {}".format(bool(int(self.coordinator.data['sys'])),
|
||||
self._attr_is_on,
|
||||
self._attr_state))
|
||||
_LOGGER.debug("[UPDATE] Switch State: {}".format(bool(int(self.coordinator.data['sys']))))
|
||||
if bool(int(self.coordinator.data['sys'])):
|
||||
self._attr_state = STATE_ON
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user