From 4281384d2a0bfde60af20e5b8630c269d40c5704 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 11 Oct 2022 00:40:40 +0200 Subject: [PATCH] Move options to SelectEntityDescription in lifx (#80015) --- homeassistant/components/lifx/select.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/lifx/select.py b/homeassistant/components/lifx/select.py index a1cfb4624d5..a89159968b1 100644 --- a/homeassistant/components/lifx/select.py +++ b/homeassistant/components/lifx/select.py @@ -16,10 +16,9 @@ INFRARED_BRIGHTNESS_ENTITY = SelectEntityDescription( key=INFRARED_BRIGHTNESS, name="Infrared brightness", entity_category=EntityCategory.CONFIG, + options=list(INFRARED_BRIGHTNESS_VALUES_MAP.values()), ) -INFRARED_BRIGHTNESS_OPTIONS = list(INFRARED_BRIGHTNESS_VALUES_MAP.values()) - async def async_setup_entry( hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback @@ -41,7 +40,6 @@ class LIFXInfraredBrightnessSelectEntity(LIFXEntity, SelectEntity): """LIFX Nightvision infrared brightness configuration entity.""" _attr_has_entity_name = True - _attr_options = INFRARED_BRIGHTNESS_OPTIONS def __init__( self, coordinator: LIFXUpdateCoordinator, description: SelectEntityDescription