1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00

Fix MusicCast select current_option (#63668)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
micha91 2022-01-11 08:49:02 +01:00 committed by GitHub
parent 431d15bf8b
commit b4b758811f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)