mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Fix MusicCast select current_option (#63668)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
@@ -59,4 +59,4 @@ class SelectableCapapility(MusicCastCapabilityEntity, SelectEntity):
|
|||||||
@property
|
@property
|
||||||
def current_option(self):
|
def current_option(self):
|
||||||
"""Return the currently selected option."""
|
"""Return the currently selected option."""
|
||||||
return self.capability.options[self.capability.current]
|
return self.capability.options.get(self.capability.current)
|
||||||
|
Reference in New Issue
Block a user