accounting sensor does not have to contain manufacturer #88

This commit is contained in:
tomaae 2021-01-19 18:01:07 +01:00
parent b309ec235a
commit aebbf7c928

View file

@ -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