Fix reworded properties in 2.1.0 pydaikin release (#36257)

This commit is contained in:
mlemainque 2020-05-30 04:15:54 +02:00 committed by GitHub
parent 86582ad1ba
commit e1c6f01047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ class DaikinPowerSensor(DaikinSensor):
if self._device_attribute == ATTR_TOTAL_POWER:
return round(self._api.device.current_total_power_consumption, 3)
if self._device_attribute == ATTR_COOL_ENERGY:
return round(self._api.device.last_hour_cool_power_consumption, 3)
return round(self._api.device.last_hour_cool_energy_consumption, 3)
if self._device_attribute == ATTR_HEAT_ENERGY:
return round(self._api.device.last_hour_heat_power_consumption, 3)
return round(self._api.device.last_hour_heat_energy_consumption, 3)
return None