Skip to content

Commit

Permalink
Always set _attr_current_option in Nobø Hub select entities (#105289)
Browse files Browse the repository at this point in the history
Always set _attr_current_option in select entities.
  • Loading branch information
oyvindwe authored and frenck committed Dec 8, 2023
1 parent 892a7c3 commit c24af97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/nobo_hub/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit c24af97

Please sign in to comment.