mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-13 18:14:28 +05:00
fix updater
This commit is contained in:
@@ -157,6 +157,8 @@ class MegaPushEntity(BaseMegaEntity):
|
|||||||
|
|
||||||
def __update(self, value: dict):
|
def __update(self, value: dict):
|
||||||
self._update(value)
|
self._update(value)
|
||||||
|
if self.hass is None:
|
||||||
|
return
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
self.lg.debug(f'state after update %s', self.state)
|
self.lg.debug(f'state after update %s', self.state)
|
||||||
if self.mega.mqtt_inputs and not _events_on:
|
if self.mega.mqtt_inputs and not _events_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user