removed duplicate code

This commit is contained in:
Tomaae 2022-03-23 15:19:21 +01:00
parent bd063ca8f0
commit 20aadb2ec7
No known key found for this signature in database
GPG key ID: 8360BBD8A381D1C0

View file

@ -163,21 +163,6 @@ class MikrotikControllerDeviceTracker(ScannerEntity):
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
def is_connected(self) -> bool:
"""Return true if device is connected."""