Added water heater appliance. Added ability to send only mandatory parameters
This commit is contained in:
8
pyhon/appliances/wh.py
Normal file
8
pyhon/appliances/wh.py
Normal file
@ -0,0 +1,8 @@
|
||||
from typing import Any, Dict
|
||||
|
||||
from pyhon.appliances.base import ApplianceBase
|
||||
|
||||
class Appliance(ApplianceBase):
|
||||
def attributes(self, data: Dict[str, Any]) -> Dict[str, Any]:
|
||||
data = super().attributes(data)
|
||||
data["active"] = data.get("onOffStatus") == 1
|
Reference in New Issue
Block a user