Use global CONF_UNIQUE_ID for deconz (#38597)

This commit is contained in:
Michaël Arnauts 2020-08-09 20:21:11 +02:00 committed by GitHub
parent 2ba4c1193c
commit 3761942b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
"""Representation of a deCONZ remote."""
from homeassistant.const import CONF_EVENT, CONF_ID
from homeassistant.const import CONF_EVENT, CONF_ID, CONF_UNIQUE_ID
from homeassistant.core import callback
from homeassistant.util import slugify
@ -7,7 +7,6 @@ from .const import CONF_GESTURE, LOGGER
from .deconz_device import DeconzBase
CONF_DECONZ_EVENT = "deconz_event"
CONF_UNIQUE_ID = "unique_id"
class DeconzEvent(DeconzBase):

View File

@ -12,10 +12,11 @@ from homeassistant.const import (
CONF_EVENT,
CONF_PLATFORM,
CONF_TYPE,
CONF_UNIQUE_ID,
)
from . import DOMAIN
from .deconz_event import CONF_DECONZ_EVENT, CONF_GESTURE, CONF_UNIQUE_ID
from .deconz_event import CONF_DECONZ_EVENT, CONF_GESTURE
CONF_SUBTYPE = "subtype"