From e221c8a37d5f13a14adf4ddd925ee65126d307b8 Mon Sep 17 00:00:00 2001 From: jumpkick Date: Wed, 15 Feb 2017 16:57:16 -0500 Subject: [PATCH] Update wemo.py --- homeassistant/components/switch/wemo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/switch/wemo.py b/homeassistant/components/switch/wemo.py index 89bddb8ecc2..7fe8de7b699 100644 --- a/homeassistant/components/switch/wemo.py +++ b/homeassistant/components/switch/wemo.py @@ -168,19 +168,19 @@ class WemoSwitch(SwitchDevice): def on_for(self): """On time in seconds.""" if self.insight_params: - return as_uptime(self.insight_params['onfor']) + return WemoSwitch.as_uptime(self.insight_params['onfor']) @property def on_today(self): """On time in seconds.""" if self.insight_params: - return as_uptime(self.insight_params['ontoday']) + return WemoSwitch.as_uptime(self.insight_params['ontoday']) @property def on_total(self): """On time in seconds.""" if self.insight_params: - return as_uptime(self.insight_params['ontotal']) + return WemoSwitch.as_uptime(self.insight_params['ontotal']) @property def power_total_mw_min(self):