Skip to content

Commit 771ec8d

Browse files
authored
Ruff fixes
1 parent cf75469 commit 771ec8d

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

zhaquirks/bosch/rbsh_rth0_zb_eu.py

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
"""Device handler for Bosch RBSH-RTH0-ZB-EU thermostat."""
22

3-
"""
4-
There are some more undocumented values that have not been figured out what they do.
5-
In Thermostat cluster:
6-
0x4023: Valid values 0-7
7-
0x4024: Valid values 0-23
8-
0x4025: Valid values 0-100
9-
0x4050: Valid values 5-10
10-
0x405b: Valid values 0-255
11-
0x4063: Valid values 0-3 (turns on display when changed, probably the UFH/Boiler/Radiator setting, but the values are unknown)
12-
13-
In UserInterface cluster:
14-
0x4032: Valid values 0-15
15-
0x406a: Valid values 0-255
16-
0x406b: Valid values 0-255
17-
0x406c: Valid values 0-255
18-
0x406d: Valid values 0-255
19-
"""
20-
213
from zigpy.quirks import CustomCluster
224
from zigpy.quirks.v2 import QuirkBuilder
235
from zigpy.quirks.v2.homeassistant import PERCENTAGE, EntityType, UnitOfTemperature
@@ -56,6 +38,17 @@
5638
# External sensor connection config.
5739
SENSOR_CONNECTION_ATTR_ID = 0x4062
5840

41+
"""
42+
There are some more undocumented attributes that have not been figured out what they do.
43+
44+
0x4023: Valid range 0-7
45+
0x4024: Valid range 0-23
46+
0x4025: Valid range 0-100
47+
0x4050: Valid range 5-10
48+
0x405b: Valid range 0-255
49+
0x4063: Valid range 0-3 (turns on display when changed, probably the UFH/Boiler/Radiator setting, but the values are unknown)
50+
"""
51+
5952
"""Bosch specific user interface attribute ids."""
6053

6154
# Valve status LED config.
@@ -67,6 +60,16 @@
6760
# Display brightness (0 - 10).
6861
SCREEN_BRIGHTNESS_ATTR_ID = 0x403B
6962

63+
"""
64+
More undocumented and unknown attributes in the UserInterface cluster.
65+
66+
0x4032: Valid range 0-15
67+
0x406a: Valid range 0-255
68+
0x406b: Valid range 0-255
69+
0x406c: Valid range 0-255
70+
0x406d: Valid range 0-255
71+
"""
72+
7073

7174
class BoschOperatingMode(t.enum8):
7275
"""Bosch operating mode attribute values."""
@@ -91,15 +94,15 @@ class BoschActuatorType(t.enum8):
9194

9295

9396
class BoschValveStatusLed(t.enum8):
94-
"""Valve status LED (dot next to heat/cool icon) functionality"""
97+
"""Valve status LED (dot next to heat/cool icon) functionality."""
9598

9699
AlwaysOff = 0x00
97100
Normal = 0x01
98101
AlwaysOn = 0x02
99102

100103

101104
class BoschSensorConnection(t.enum8):
102-
"""Sensor connection setting (for external 10K NTC sensor on S1/S2)"""
105+
"""Sensor connection setting (for external 10K NTC sensor on S1/S2)."""
103106

104107
NotUsed = 0x00
105108
WithoutRegulation = 0xB0

0 commit comments

Comments
 (0)