mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-29 23:14:30 +02:00
added debugs
This commit is contained in:
parent
8bfc64d4c8
commit
b309ec235a
2 changed files with 4 additions and 0 deletions
|
@ -150,6 +150,7 @@ class MikrotikControllerDeviceTracker(ScannerEntity):
|
||||||
|
|
||||||
def __init__(self, inst, uid, mikrotik_controller, config_entry, sid_data):
|
def __init__(self, inst, uid, mikrotik_controller, config_entry, sid_data):
|
||||||
"""Set up a device tracker."""
|
"""Set up a device tracker."""
|
||||||
|
_LOGGER.debug("Initializing device tracker sensor: %s", uid)
|
||||||
self._sid_data = sid_data
|
self._sid_data = sid_data
|
||||||
self._inst = inst
|
self._inst = inst
|
||||||
self._ctrl = mikrotik_controller
|
self._ctrl = mikrotik_controller
|
||||||
|
|
|
@ -472,6 +472,9 @@ class MikrotikControllerData:
|
||||||
if uid in self.data["arp"] and self.data["arp"][uid]["bridge"] != "":
|
if uid in self.data["arp"] and self.data["arp"][uid]["bridge"] != "":
|
||||||
tmp_interface = self.data["arp"][uid]["bridge"]
|
tmp_interface = self.data["arp"][uid]["bridge"]
|
||||||
|
|
||||||
|
_LOGGER.debug(
|
||||||
|
"Ping host: %s (%s)", uid, self.data["host"][uid]["address"]
|
||||||
|
)
|
||||||
self.data["host"][uid][
|
self.data["host"][uid][
|
||||||
"available"
|
"available"
|
||||||
] = await self.hass.async_add_executor_job(
|
] = await self.hass.async_add_executor_job(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue