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