Skip to content

Commit

Permalink
Use global CONF_UNIQUE_ID for hue (home-assistant#38596)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts authored Aug 9, 2020
1 parent b258e75 commit 2ba4c11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion homeassistant/components/hue/device_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
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__)

Expand Down
3 changes: 1 addition & 2 deletions homeassistant/components/hue/hue_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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

Expand All @@ -13,7 +13,6 @@

CONF_HUE_EVENT = "hue_event"
CONF_LAST_UPDATED = "last_updated"
CONF_UNIQUE_ID = "unique_id"

EVENT_NAME_FORMAT = "{}"

Expand Down

0 comments on commit 2ba4c11

Please sign in to comment.