Axis - Streamline setup and teardown of integration (#35675)
* Streamline setup and teardown of integration * Dont remove integration twice
This commit is contained in:
1 parent
890013cecf
commit
714047f789
4 files changed
+42
-51
No files matched your search
@@ -32,6 +32,9 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
|
||||
device = hass.data[AXIS_DOMAIN][config_entry.unique_id]
|
||||
|
||||
if not device.option_camera:
|
||||
return
|
||||
|
||||
config = {
|
||||
CONF_NAME: config_entry.data[CONF_NAME],
|
||||
CONF_USERNAME: config_entry.data[CONF_USERNAME],
|
||||
|
||||
Reference in new issue
Block a user