Axis devices support device registry (#22367)
* Add support for device registry * Fix test
This commit is contained in:
1 parent
646c4a7137
commit
52437f6246
5 files changed
+44
-1
No files matched your search
@@ -52,6 +52,8 @@ async def async_setup_entry(hass, config_entry):
|
||||
|
||||
hass.data[DOMAIN][device.serial] = device
|
||||
|
||||
await device.async_update_device_registry()
|
||||
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, device.shutdown)
|
||||
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user