mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
fritzdect change to current_power_w (#16079)
This commit is contained in:
committed by
Fabian Affolter
parent
85a724e289
commit
439f7978c3
@@ -105,7 +105,7 @@ class FritzDectSwitch(SwitchDevice):
|
||||
return attrs
|
||||
|
||||
@property
|
||||
def current_power_watt(self):
|
||||
def current_power_w(self):
|
||||
"""Return the current power usage in Watt."""
|
||||
try:
|
||||
return float(self.data.current_consumption)
|
||||
|
Reference in New Issue
Block a user