mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-30 12:34:30 +02:00
accounting sensor does not have to contain manufacturer #88
This commit is contained in:
parent
b309ec235a
commit
aebbf7c928
1 changed files with 1 additions and 1 deletions
|
@ -528,7 +528,7 @@ class MikrotikAccountingSensor(MikrotikControllerSensor):
|
|||
"connections": {(CONNECTION_NETWORK_MAC, self._data["mac-address"])},
|
||||
"default_name": self._data["host-name"],
|
||||
}
|
||||
if self._data["manufacturer"] != "":
|
||||
if "manufacturer" in self._data and self._data["manufacturer"] != "":
|
||||
info["manufacturer"] = self._data["manufacturer"]
|
||||
|
||||
return info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue