diff --git a/homeassistant/components/flux_led/select.py b/homeassistant/components/flux_led/select.py index 7edf0ef50f88b4b3e963e6ae843a22f4b13b4a87..4067110e336b717ca60c93eec880a024f256dc4b 100644 --- a/homeassistant/components/flux_led/select.py +++ b/homeassistant/components/flux_led/select.py @@ -110,7 +110,7 @@ class FluxPowerStateSelect(FluxConfigAtStartSelect, SelectEntity): ) -> None: """Initialize the power state select.""" super().__init__(device, entry) - self._attr_name = f"{entry.data[CONF_NAME]} Power Restored" + self._attr_name = f"{entry.data.get(CONF_NAME, entry.title)} Power Restored" base_unique_id = entry.unique_id or entry.entry_id self._attr_unique_id = f"{base_unique_id}_power_restored" self._async_set_current_option_from_device() @@ -237,7 +237,7 @@ class FluxWhiteChannelSelect(FluxConfigAtStartSelect): ) -> None: """Initialize the white channel select.""" super().__init__(device, entry) - self._attr_name = f"{entry.data[CONF_NAME]} White Channel" + self._attr_name = f"{entry.data.get(CONF_NAME, entry.title)} White Channel" base_unique_id = entry.unique_id or entry.entry_id self._attr_unique_id = f"{base_unique_id}_white_channel"