mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-24 04:24:29 +02:00
removed duplicate via_device
This commit is contained in:
parent
867b66d500
commit
d7f63b3a50
1 changed files with 0 additions and 10 deletions
|
@ -285,16 +285,6 @@ class MikrotikControllerSensor(SensorEntity):
|
||||||
via_device=(DOMAIN, f"{self._ctrl.data['routerboard']['serial-number']}"),
|
via_device=(DOMAIN, f"{self._ctrl.data['routerboard']['serial-number']}"),
|
||||||
)
|
)
|
||||||
|
|
||||||
if (
|
|
||||||
dev_connection != DOMAIN
|
|
||||||
and dev_connection_value
|
|
||||||
!= f"{self._ctrl.data['routerboard']['serial-number']}"
|
|
||||||
):
|
|
||||||
info["via_device"] = (
|
|
||||||
DOMAIN,
|
|
||||||
f"{self._ctrl.data['routerboard']['serial-number']}",
|
|
||||||
)
|
|
||||||
|
|
||||||
if "mac-address" in self.entity_description.data_reference:
|
if "mac-address" in self.entity_description.data_reference:
|
||||||
dev_name = self._data[self.entity_description.data_name]
|
dev_name = self._data[self.entity_description.data_name]
|
||||||
dev_manufacturer = ""
|
dev_manufacturer = ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue