4f7d4860db
* Added water heater appliance. Added ability to send only mandatory parameters * fixed build * formatting * cleanup * cleanup * reformatting * Added ability to send specific parameters. Useful in case the command has many not mandatory parameters and you want to send only one/few * cleanup * Fixed code style --------- Co-authored-by: Vadym Melnychuk <vme@primexm.com>
12 lines
305 B
Python
12 lines
305 B
Python
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["parameters"]["onOffStatus"] == "1"
|
|
|
|
return data
|