diff --git a/platypush/plugins/switch/wemo/__init__.py b/platypush/plugins/switch/wemo/__init__.py index 08ededf59c..c8cee331ff 100644 --- a/platypush/plugins/switch/wemo/__init__.py +++ b/platypush/plugins/switch/wemo/__init__.py @@ -129,7 +129,7 @@ class SwitchWemoPlugin(SwitchPlugin): :param device: Device name or address """ self._exec(device=device, action=SwitchAction.SET_STATE, value=1) - return self.status(device).output[0] + return self.status(device) @action def off(self, device: str, **kwargs): @@ -139,7 +139,7 @@ class SwitchWemoPlugin(SwitchPlugin): :param device: Device name or address """ self._exec(device=device, action=SwitchAction.SET_STATE, value=0) - return self.status(device).output[0] + return self.status(device) @action def toggle(self, device: str, *args, **kwargs):