Remove energy usage from the switch base class (#68821)
* Remove energy usage from the switch base class * Remove unused attributes from integrations
This commit is contained in:
parent
c6ba987995
commit
69fcce3b2c
24 changed files with 11 additions and 328 deletions
|
@ -69,11 +69,6 @@ class HiveDevicePlug(HiveEntity, SwitchEntity):
|
|||
ATTR_MODE: self.attributes.get(ATTR_MODE),
|
||||
}
|
||||
|
||||
@property
|
||||
def current_power_w(self):
|
||||
"""Return the current power usage in W."""
|
||||
return self.device["status"].get("power_usage")
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
"""Return true if switch is on."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue