Axis - Streamline setup and teardown of integration (#35675)

* Streamline setup and teardown of integration

* Dont remove integration twice
This commit is contained in:
Robert Svensson
2020-05-15 23:56:09 +02:00
committed by GitHub
parent 890013cecf
commit 714047f789
4 changed files with 42 additions and 51 deletions

View File

@@ -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]