mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-22 19:54:23 +02:00
removed duplicate code
This commit is contained in:
parent
bd063ca8f0
commit
20aadb2ec7
1 changed files with 0 additions and 15 deletions
|
@ -163,21 +163,6 @@ class MikrotikControllerDeviceTracker(ScannerEntity):
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
|
||||||
def device_info(self) -> Dict[str, Any]:
|
|
||||||
"""Return a description for device registry."""
|
|
||||||
info = {
|
|
||||||
"connections": {
|
|
||||||
(CONNECTION_NETWORK_MAC, self._data[self._sid_data["sid_ref"]])
|
|
||||||
},
|
|
||||||
"default_manufacturer": self._ctrl.data["resource"]["platform"],
|
|
||||||
"default_model": self._ctrl.data["resource"]["board-name"],
|
|
||||||
"default_name": self._data[self._sid_data["sid_name"]],
|
|
||||||
}
|
|
||||||
if self._sid_data["sid"] == "interface":
|
|
||||||
info["name"] = f"{self._inst} {self._data[self._sid_data['sid_name']]}"
|
|
||||||
return info
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_connected(self) -> bool:
|
def is_connected(self) -> bool:
|
||||||
"""Return true if device is connected."""
|
"""Return true if device is connected."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue