Improve Axis integration (#36205)
* Improve configuration * Read new properties for basic device information Improve tests by mocking less improving stability of tests * Clean up in device tests * Support new port management api * Improve initializing data * Bump dependency to v28
This commit is contained in:
1 parent
6ed68d8ced
commit
01d9366299
10 files changed
+215
-152
No files matched your search
@@ -27,7 +27,7 @@ async def async_setup_entry(hass, config_entry):
|
||||
# 0.104 introduced config entry unique id, this makes upgrading possible
|
||||
if config_entry.unique_id is None:
|
||||
hass.config_entries.async_update_entry(
|
||||
config_entry, unique_id=device.api.vapix.params.system_serialnumber
|
||||
config_entry, unique_id=device.api.vapix.serial_number
|
||||
)
|
||||
|
||||
hass.data[AXIS_DOMAIN][config_entry.unique_id] = device
|
||||
|
||||
Reference in new issue
Block a user