mirror of
https://github.com/Andre0512/pyhOn.git
synced 2024-12-12 22:41:09 +01: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
|