mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-01 08:24:29 +02:00
Do not process device tracker when tracking coordinator is disabled
This commit is contained in:
parent
4abf5b210d
commit
2349584551
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ async def async_add_entities(
|
|||
@callback
|
||||
async def async_update_controller(coordinator):
|
||||
"""Update the values of the controller."""
|
||||
if coordinator.data is None:
|
||||
return
|
||||
|
||||
async def async_check_exist(obj, coordinator, uid: None) -> None:
|
||||
"""Check entity exists."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue