mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Rename options key in rainmachine (#79249)
This commit is contained in:
parent
75510b8e90
commit
da445e515b
@ -43,7 +43,7 @@ class FreezeProtectionSelectOption:
|
|||||||
class FreezeProtectionTemperatureMixin:
|
class FreezeProtectionTemperatureMixin:
|
||||||
"""Define an entity description mixin to include an options list."""
|
"""Define an entity description mixin to include an options list."""
|
||||||
|
|
||||||
options: list[FreezeProtectionSelectOption]
|
extended_options: list[FreezeProtectionSelectOption]
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
@ -63,7 +63,7 @@ SELECT_DESCRIPTIONS = (
|
|||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
api_category=DATA_RESTRICTIONS_UNIVERSAL,
|
api_category=DATA_RESTRICTIONS_UNIVERSAL,
|
||||||
data_key="freezeProtectTemp",
|
data_key="freezeProtectTemp",
|
||||||
options=[
|
extended_options=[
|
||||||
FreezeProtectionSelectOption(
|
FreezeProtectionSelectOption(
|
||||||
api_value=0.0,
|
api_value=0.0,
|
||||||
imperial_label="32°F",
|
imperial_label="32°F",
|
||||||
@ -128,7 +128,7 @@ class FreezeProtectionTemperatureSelect(RainMachineEntity, SelectEntity):
|
|||||||
self._api_value_to_label_map = {}
|
self._api_value_to_label_map = {}
|
||||||
self._label_to_api_value_map = {}
|
self._label_to_api_value_map = {}
|
||||||
|
|
||||||
for option in description.options:
|
for option in description.extended_options:
|
||||||
if unit_system == CONF_UNIT_SYSTEM_IMPERIAL:
|
if unit_system == CONF_UNIT_SYSTEM_IMPERIAL:
|
||||||
label = option.imperial_label
|
label = option.imperial_label
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user