mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-10 09:24:31 +02:00
removed unnecessary condition #24
This commit is contained in:
parent
b3e26c5eb9
commit
2302c50d70
1 changed files with 2 additions and 3 deletions
|
@ -781,8 +781,7 @@ class MikrotikControllerData:
|
||||||
if entity.config_entry_id == self.config_entry.entry_id \
|
if entity.config_entry_id == self.config_entry.entry_id \
|
||||||
and entity.domain == DEVICE_TRACKER_DOMAIN \
|
and entity.domain == DEVICE_TRACKER_DOMAIN \
|
||||||
and "-host-" in entity.unique_id:
|
and "-host-" in entity.unique_id:
|
||||||
_, tracker_id, mac = entity.unique_id.split("-", 3)
|
_, _, mac = entity.unique_id.split("-", 3)
|
||||||
if tracker_id == "host":
|
|
||||||
self.data["host_hass"][mac] = entity.original_name
|
self.data["host_hass"][mac] = entity.original_name
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue