From 08bb4ca9426c519593986856cdea060cb12770cf Mon Sep 17 00:00:00 2001 From: David Date: Wed, 22 Jan 2020 12:43:53 -0500 Subject: [PATCH] fix to return just the power integer value --- wideq/ac.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wideq/ac.py b/wideq/ac.py index 0b8363b..93ccb6a 100644 --- a/wideq/ac.py +++ b/wideq/ac.py @@ -252,12 +252,14 @@ class ACDevice(Device): def get_outdoor_power(self): """Get instant power usage in watts of the outdoor unit""" - return self._get_config('InOutInstantPower') + value = self._get_config('OutTotalInstantPower') + return value['OutTotalInstantPower'] def get_power(self): """Get the instant power usage in watts of the whole unit""" - return self._get_config('OutTotalInstantPower') + value = self._get_config('InOutInstantPower') + return value['InOutInstantPower'] def get_light(self): """Get a Boolean indicating whether the display light is on."""