mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-30 22:49:30 +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
|
@callback
|
||||||
async def async_update_controller(coordinator):
|
async def async_update_controller(coordinator):
|
||||||
"""Update the values of the controller."""
|
"""Update the values of the controller."""
|
||||||
|
if coordinator.data is None:
|
||||||
|
return
|
||||||
|
|
||||||
async def async_check_exist(obj, coordinator, uid: None) -> None:
|
async def async_check_exist(obj, coordinator, uid: None) -> None:
|
||||||
"""Check entity exists."""
|
"""Check entity exists."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue