Fix MusicCast select current_option (#63668)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>pull/63877/head
parent
431d15bf8b
commit
b4b758811f
|
@ -59,4 +59,4 @@ class SelectableCapapility(MusicCastCapabilityEntity, SelectEntity):
|
|||
@property
|
||||
def current_option(self):
|
||||
"""Return the currently selected option."""
|
||||
return self.capability.options[self.capability.current]
|
||||
return self.capability.options.get(self.capability.current)
|
||||
|
|
Loading…
Reference in New Issue