From 2ba4c1193c0f8702fd59e83a339f10202833f81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Sun, 9 Aug 2020 20:20:11 +0200 Subject: [PATCH] Use global CONF_UNIQUE_ID for hue (#38596) --- homeassistant/components/hue/device_trigger.py | 3 ++- homeassistant/components/hue/hue_event.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/hue/device_trigger.py b/homeassistant/components/hue/device_trigger.py index f3a8a57167a..8a4b2eab714 100644 --- a/homeassistant/components/hue/device_trigger.py +++ b/homeassistant/components/hue/device_trigger.py @@ -14,10 +14,11 @@ from homeassistant.const import ( CONF_EVENT, CONF_PLATFORM, CONF_TYPE, + CONF_UNIQUE_ID, ) from . import DOMAIN -from .hue_event import CONF_HUE_EVENT, CONF_UNIQUE_ID +from .hue_event import CONF_HUE_EVENT _LOGGER = logging.getLogger(__file__) diff --git a/homeassistant/components/hue/hue_event.py b/homeassistant/components/hue/hue_event.py index d3d81a6a7af..28c6ac3a594 100644 --- a/homeassistant/components/hue/hue_event.py +++ b/homeassistant/components/hue/hue_event.py @@ -3,7 +3,7 @@ import logging from aiohue.sensors import TYPE_ZGP_SWITCH, TYPE_ZLL_ROTARY, TYPE_ZLL_SWITCH -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 @@ -13,7 +13,6 @@ _LOGGER = logging.getLogger(__name__) CONF_HUE_EVENT = "hue_event" CONF_LAST_UPDATED = "last_updated" -CONF_UNIQUE_ID = "unique_id" EVENT_NAME_FORMAT = "{}"