Skip to content

Commit

Permalink
Update dashboard.py
Browse files Browse the repository at this point in the history
  • Loading branch information
coreywillwhat authored May 2, 2024
1 parent 3a145f5 commit f77a719
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions custom_components/audiconnect/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,26 @@ def state(self):
return super().state


class ClimateControl(Instrument):
def __init__(self):
super().__init__(
component="binary_sensor",
attr="climatisation_state",
name="Climate Control",
icon="mdi:air-conditioner",
)
self.device_class = BinarySensorDeviceClass.RUNNING
self.entity_category = None

@property
def is_on(self):
return self.state == "heating" or self.state == "cooling"

@property
def extra_state_attributes(self):
data = super().state


def create_instruments():
return [
Position(),
Expand Down

0 comments on commit f77a719

Please sign in to comment.