mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Fix AVM FRITZ!DECT switch total consumption (#30478)
actor.get_energy() returns Wh, so division by 1000 is correct
This commit is contained in:
parent
05374d7c85
commit
e88bfda2a8
@ -209,7 +209,7 @@ class FritzDectSwitchData:
|
||||
try:
|
||||
self.state = actor.get_state()
|
||||
self.current_consumption = (actor.get_power() or 0.0) / 1000
|
||||
self.total_consumption = (actor.get_energy() or 0.0) / 100000
|
||||
self.total_consumption = (actor.get_energy() or 0.0) / 1000
|
||||
except (RequestException, HTTPError):
|
||||
_LOGGER.error("Request to actor failed")
|
||||
self.state = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user