mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-18 01:34:24 +02:00
added entity update debugs #18
This commit is contained in:
parent
35936352a8
commit
1ec4e13eb8
4 changed files with 7 additions and 5 deletions
|
@ -115,6 +115,7 @@ def update_items(inst, mikrotik_controller, async_add_entities, switches):
|
|||
):
|
||||
for uid in mikrotik_controller.data[sid]:
|
||||
item_id = f"{inst}-{sid}-{mikrotik_controller.data[sid][uid]['name']}"
|
||||
_LOGGER.debug("Updating switch %s", item_id)
|
||||
if item_id in switches:
|
||||
if switches[item_id].enabled:
|
||||
switches[item_id].async_schedule_update_ha_state()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue