Skip to content

Commit

Permalink
Apply pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 1, 2024
1 parent b9e4337 commit a98a01b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zhaquirks/xiaomi/aqara/thermostat_agl001.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ class AqaraThermostatSpecificCluster(XiaomiAqaraE1Cluster):
SCHEDULE_SETTINGS: ("schedule_settings", ScheduleSettings, True),
SENSOR: ("sensor", t.uint8_t, True),
BATTERY_PERCENTAGE: ("battery_percentage", t.uint8_t, True),

# EXTERNAL SENSOR
SENSOR_TEMP: ("sensor_temp", t.uint32_t, True),
SENSOR_ATTR: (SENSOR_ATTR_NAME, t.LVBytes, True),
Expand All @@ -394,11 +393,11 @@ def _update_attribute(self, attrid, value):
self.debug("Updating attribute on Xiaomi cluster %s with %s", attrid, value)
if attrid == BATTERY_PERCENTAGE:
self.endpoint.power.battery_percent_reported(value)
elif attrid == SENSOR_TEMP:

elif attrid == SENSOR_TEMP:
# EXTERNAL SENSOR
pass

elif attrid == SYSTEM_MODE:
# update ZCL system_mode attribute (e.g. on attribute reports)
self.endpoint.thermostat.update_attribute(
Expand Down

0 comments on commit a98a01b

Please sign in to comment.