mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Always set _attr_current_option in Nobø Hub select entities (#105289)
Always set _attr_current_option in select entities.
This commit is contained in:
parent
6b7dace8d4
commit
a10f580815
@ -59,7 +59,7 @@ class NoboGlobalSelector(SelectEntity):
|
||||
nobo.API.OVERRIDE_MODE_ECO: "eco",
|
||||
}
|
||||
_attr_options = list(_modes.values())
|
||||
_attr_current_option: str
|
||||
_attr_current_option: str | None = None
|
||||
|
||||
def __init__(self, hub: nobo, override_type) -> None:
|
||||
"""Initialize the global override selector."""
|
||||
@ -117,7 +117,7 @@ class NoboProfileSelector(SelectEntity):
|
||||
_attr_should_poll = False
|
||||
_profiles: dict[int, str] = {}
|
||||
_attr_options: list[str] = []
|
||||
_attr_current_option: str
|
||||
_attr_current_option: str | None = None
|
||||
|
||||
def __init__(self, zone_id: str, hub: nobo) -> None:
|
||||
"""Initialize the week profile selector."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user