This commit is contained in:
Tomaae 2023-08-09 02:33:49 +02:00
parent 3869e670a6
commit 7a892b6800
No known key found for this signature in database
GPG key ID: 2F97770867DAA4E6
2 changed files with 1 additions and 5 deletions

View file

@ -212,7 +212,6 @@ class MikrotikCoordinator(DataUpdateCoordinator):
# async_init # async_init
# --------------------------- # ---------------------------
# async def async_init(self): # async def async_init(self):
# print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
# self.listeners.append( # self.listeners.append(
# async_track_time_interval( # async_track_time_interval(
# self.hass, self.force_fwupdate_check, timedelta(hours=4) # self.hass, self.force_fwupdate_check, timedelta(hours=4)
@ -592,9 +591,6 @@ class MikrotikCoordinator(DataUpdateCoordinator):
# --------------------------- # ---------------------------
async def _async_update_data(self): async def _async_update_data(self):
"""Update Mikrotik data""" """Update Mikrotik data"""
print(
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
)
if self.api.has_reconnected(): if self.api.has_reconnected():
await self.async_hwinfo_update() await self.async_hwinfo_update()

View file

@ -157,7 +157,7 @@ class MikrotikEntity(CoordinatorEntity[MikrotikCoordinator], Entity):
): ):
"""Initialize entity""" """Initialize entity"""
super().__init__(coordinator) super().__init__(coordinator)
self.coordinator = coordinator # self.coordinator = coordinator
self.entity_description = entity_description self.entity_description = entity_description
self._inst = coordinator.config_entry.data[CONF_NAME] self._inst = coordinator.config_entry.data[CONF_NAME]
self._config_entry = self.coordinator.config_entry self._config_entry = self.coordinator.config_entry