Make Axis integration use config entry unique id (#30461)

* Make Axis integration use config entry unique id
This commit is contained in:
Robert Svensson authored and GitHub committed 2020-01-04 08:58:18 +01:00
1 parent 075d3f6e32
commit 63347ebeb5
11 files changed
+87 -133

No files matched your search

+2 -2
View File
@@ -56,8 +56,8 @@ class AxisNetworkDevice:
@property
def serial(self):
"""Return the mac of this device."""
return self.config_entry.data[CONF_MAC]
"""Return the serial number of this device."""
return self.config_entry.unique_id
async def async_update_device_registry(self):
"""Update device registry."""