mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Remove parenthesis
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user