mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-02 21:44:31 +02:00
Modified variable hostname to host-name to keep inline with Mikrotik API
This commit is contained in:
parent
1bb90d51cd
commit
023f45cf26
2 changed files with 13 additions and 13 deletions
|
@ -38,7 +38,7 @@ DEVICE_ATTRIBUTES_IFACE = [
|
|||
]
|
||||
|
||||
DEVICE_ATTRIBUTES_HOST = [
|
||||
"hostname",
|
||||
"host-name",
|
||||
"address",
|
||||
"mac-address",
|
||||
"interface",
|
||||
|
@ -234,7 +234,7 @@ class MikrotikControllerHostDeviceTracker(ScannerEntity):
|
|||
_LOGGER.debug(
|
||||
"New host tracker %s (%s - %s)",
|
||||
self._inst,
|
||||
self._data["hostname"],
|
||||
self._data["host-name"],
|
||||
self._data["mac-address"],
|
||||
)
|
||||
|
||||
|
@ -254,7 +254,7 @@ class MikrotikControllerHostDeviceTracker(ScannerEntity):
|
|||
@property
|
||||
def name(self):
|
||||
"""Return the name of the host."""
|
||||
return f"{self._data['hostname']}"
|
||||
return f"{self._data['host-name']}"
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue