Isolate consts better to where they are used (#63569)

This commit is contained in:
Christopher Bailey
2022-01-06 11:57:56 -10:00
committed by GitHub
parent 442690b885
commit 3e2495f417
5 changed files with 21 additions and 33 deletions
@@ -13,12 +13,10 @@ from pyunifiprotect.data.devices import Sensor
from homeassistant.components.unifiprotect.binary_sensor import (
CAMERA_SENSORS,
LIGHT_SENSORS,
RING_INTERVAL,
SENSE_SENSORS,
)
from homeassistant.components.unifiprotect.const import (
DEFAULT_ATTRIBUTION,
RING_INTERVAL,
)
from homeassistant.components.unifiprotect.const import DEFAULT_ATTRIBUTION
from homeassistant.const import (
ATTR_ATTRIBUTION,
ATTR_LAST_TRIP_TIME,
+1 -1
View File
@@ -23,12 +23,12 @@ from homeassistant.components.unifiprotect.const import (
ATTR_DURATION,
ATTR_MESSAGE,
DEFAULT_ATTRIBUTION,
SERVICE_SET_DOORBELL_MESSAGE,
)
from homeassistant.components.unifiprotect.select import (
CAMERA_SELECTS,
LIGHT_MODE_OFF,
LIGHT_SELECTS,
SERVICE_SET_DOORBELL_MESSAGE,
VIEWER_SELECTS,
)
from homeassistant.const import ATTR_ATTRIBUTION, ATTR_ENTITY_ID, ATTR_OPTION, Platform