diff --git a/homeassistant/components/upb/__init__.py b/homeassistant/components/upb/__init__.py index b84bab054a2..f2765ff317d 100644 --- a/homeassistant/components/upb/__init__.py +++ b/homeassistant/components/upb/__init__.py @@ -14,7 +14,7 @@ from .const import ( ATTR_COMMAND, ATTR_RATE, DOMAIN, - EVENT_UPB_LINK_CHANGED, + EVENT_UPB_SCENE_CHANGED, ) UPB_PLATFORMS = ["light", "scene"] @@ -49,7 +49,7 @@ async def async_setup_entry(hass, config_entry): return hass.bus.async_fire( - EVENT_UPB_LINK_CHANGED, + EVENT_UPB_SCENE_CHANGED, { ATTR_COMMAND: change["command"], ATTR_ADDRESS: element.addr.index, diff --git a/homeassistant/components/upb/const.py b/homeassistant/components/upb/const.py index f01af0fd39f..75d754087e4 100644 --- a/homeassistant/components/upb/const.py +++ b/homeassistant/components/upb/const.py @@ -13,7 +13,7 @@ ATTR_BRIGHTNESS_PCT = "brightness_pct" ATTR_COMMAND = "command" ATTR_RATE = "rate" CONF_NETWORK = "network" -EVENT_UPB_LINK_CHANGED = "upb.link_changed" +EVENT_UPB_SCENE_CHANGED = "upb.scene_changed" VALID_BRIGHTNESS = vol.All(vol.Coerce(int), vol.Clamp(min=0, max=255)) VALID_BRIGHTNESS_PCT = vol.All(vol.Coerce(float), vol.Range(min=0, max=100))