Skip to content

Commit

Permalink
added kwh factor
Browse files Browse the repository at this point in the history
  • Loading branch information
petretiandrea committed Sep 11, 2021
1 parent 6a7437f commit 46fce85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/tapo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ def native_unit_of_measurement(self) -> Optional[str]:
@property
def native_value(self) -> StateType:
if self.coordinator.data.energy_info != None:
return self.coordinator.data.energy_info.today_energy
return self.coordinator.data.energy_info.today_energy / 1000
else:
return None
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
],
"iot_class": "Local Polling",
"render_readme": true,
"homeassistant": "0.118.0"
"homeassistant": "2021.9.0"
}

0 comments on commit 46fce85

Please sign in to comment.