Move options to SelectEntityDescription in lifx (#80015)
parent
ce4d93b0c1
commit
4281384d2a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue