mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-16 07:10:09 -07:00
fix to return just the power integer value
This commit is contained in:
parent
a62572e599
commit
08bb4ca942
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user