diff --git a/homeassistant/components/switch/wemo.py b/homeassistant/components/switch/wemo.py index f8b48950873..90d0f46ba68 100644 --- a/homeassistant/components/switch/wemo.py +++ b/homeassistant/components/switch/wemo.py @@ -138,10 +138,9 @@ class WemoSwitch(SwitchDevice): @property def available(self): """True if switch is available.""" - if (self.wemo.model_name == 'Insight' and self.insight_params is None): + if self.wemo.model_name == 'Insight' and self.insight_params is None: return False - - if (self.wemo.model_name == 'Maker' and self.maker_params is None): + if self.wemo.model_name == 'Maker' and self.maker_params is None: return False return True