diff --git a/homeassistant/components/broadlink/switch.py b/homeassistant/components/broadlink/switch.py index 96a45322114..5c67e9dbc28 100644 --- a/homeassistant/components/broadlink/switch.py +++ b/homeassistant/components/broadlink/switch.py @@ -322,6 +322,8 @@ class BroadlinkMP1Switch: def get_outlet_status(self, slot): """Get status of outlet from cached status list.""" + if self._states is None: + return None return self._states['s{}'.format(slot)] @Throttle(TIME_BETWEEN_UPDATES)