Skip to content

Commit

Permalink
Roborock fix "selected map" when first map in list is selected (#127126)
Browse files Browse the repository at this point in the history
* avoid None when current_map = 0

* combine statements
  • Loading branch information
N3rdix authored Oct 1, 2024
1 parent 5bf5545 commit 963b9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/roborock/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ def options(self) -> list[str]:
@property
def current_option(self) -> str | None:
"""Get the current status of the select entity from device_status."""
if current_map := self.coordinator.current_map:
if (current_map := self.coordinator.current_map) is not None:
return self.coordinator.maps[current_map].name
return None

0 comments on commit 963b9d9

Please sign in to comment.