mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-27 19:28:54 +02:00
cleanup
This commit is contained in:
parent
3869e670a6
commit
7a892b6800
2 changed files with 1 additions and 5 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue