|
8 | 8 | RelativeHumidity as RelativeHumidityBase,
|
9 | 9 | TemperatureMeasurement as TemperatureMeasurementBase,
|
10 | 10 | )
|
11 |
| -from zigpy.zcl.foundation import BaseAttributeDefs, ZCLAttributeDef |
| 11 | +from zigpy.zcl.foundation import ZCLAttributeDef |
12 | 12 |
|
13 | 13 | from zhaquirks import CustomCluster
|
14 | 14 | from zhaquirks.const import (
|
@@ -52,21 +52,17 @@ class AttributeDefs(RelativeHumidityBase.AttributeDefs):
|
52 | 52 | )
|
53 | 53 |
|
54 | 54 |
|
55 |
| -class UserInterface(CustomCluster): |
| 55 | +class UserInterface(CustomCluster, UserInterfaceBase): |
56 | 56 | """Custom User Interface Cluster with smiley control."""
|
57 | 57 |
|
58 |
| - cluster_id = UserInterfaceBase.cluster_id |
59 |
| - |
60 |
| - class AttributeDefs(BaseAttributeDefs): |
| 58 | + class AttributeDefs(UserInterfaceBase.AttributeDefs): |
61 | 59 | """Attribute Definitions."""
|
62 | 60 |
|
63 |
| - # of the 3 ZCL spec attributes, only the first one (TemperatureDisplayMode) is implemented |
| 61 | + # of the 3 ZCL Thermostat User Interface spec attributes, |
| 62 | + # only the first one (TemperatureDisplayMode) is implemented fully. |
64 | 63 | # KeypadLockout is implemented but completely unused in the device firmware
|
65 |
| - # ScheduleProgrammingVisibility is not implemented at all |
| 64 | + # and ScheduleProgrammingVisibility is not implemented at all |
66 | 65 | # https://github.com/devbis/z03mmc/blob/1.1.0/src/sensorEpCfg.c#L256
|
67 |
| - temperature_display_mode = ( |
68 |
| - UserInterfaceBase.AttributeDefs.temperature_display_mode |
69 |
| - ) |
70 | 66 |
|
71 | 67 | # 0 - smiley is off, 1 - smiley is on (according to comfort values)
|
72 | 68 | smiley = ZCLAttributeDef(
|
|
0 commit comments