mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 17:14:28 +05:00
edit readme
This commit is contained in:
@@ -93,11 +93,13 @@ class MegaPushEntity(BaseMegaEntity):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.mega.subscribe(self.port, callback=self.__update)
|
||||
self.is_first_update = True
|
||||
|
||||
def __update(self, value: dict):
|
||||
self._update(value)
|
||||
self.async_write_ha_state()
|
||||
self.lg.debug(f'state after update %s', self.state)
|
||||
self.is_first_update = False
|
||||
return
|
||||
|
||||
def _update(self, payload: dict):
|
||||
|
||||
Reference in New Issue
Block a user