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:
Paulus Schoutsen 2022-03-28 21:56:04 -07:00 committed by GitHub
parent c6ba987995
commit 69fcce3b2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 11 additions and 328 deletions

View file

@ -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."""