mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-10 15:32:09 +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
|