From b4b758811f3c7137b45bb254e0bcb8a7bcb0041c Mon Sep 17 00:00:00 2001 From: micha91 Date: Tue, 11 Jan 2022 08:49:02 +0100 Subject: [PATCH] Fix MusicCast select current_option (#63668) Co-authored-by: Franck Nijhof --- homeassistant/components/yamaha_musiccast/select.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/yamaha_musiccast/select.py b/homeassistant/components/yamaha_musiccast/select.py index d64682c8eb4..d57d1c07f68 100644 --- a/homeassistant/components/yamaha_musiccast/select.py +++ b/homeassistant/components/yamaha_musiccast/select.py @@ -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)