mirror of
https://github.com/Andre0512/pyhOn.git
synced 2024-01-19 02:50:44 +00:00
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
|