Axis - Streamline setup and teardown of integration (#35675)
* Streamline setup and teardown of integration * Dont remove integration twice
This commit is contained in:
parent
890013cecf
commit
714047f789
4 changed files with 42 additions and 51 deletions
|
@ -1,6 +1,10 @@
|
|||
"""Constants for the Axis component."""
|
||||
import logging
|
||||
|
||||
from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN
|
||||
from homeassistant.components.camera import DOMAIN as CAMERA_DOMAIN
|
||||
from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN
|
||||
|
||||
LOGGER = logging.getLogger(__package__)
|
||||
|
||||
DOMAIN = "axis"
|
||||
|
@ -13,3 +17,5 @@ CONF_MODEL = "model"
|
|||
|
||||
DEFAULT_EVENTS = True
|
||||
DEFAULT_TRIGGER_TIME = 0
|
||||
|
||||
PLATFORMS = [BINARY_SENSOR_DOMAIN, CAMERA_DOMAIN, SWITCH_DOMAIN]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue