Skip to content

Commit 62e0914

Browse files
committed
Improve cooling mode test. Remove unused display orientation mapping.
1 parent d0123d2 commit 62e0914

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/test_bosch.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@ def mock_read(attributes, manufacturer=None):
240240
]
241241
== ControlSequenceOfOperation.Cooling_Only
242242
)
243+
assert (
244+
bosch_thermostat_cluster._attr_cache[
245+
Thermostat.AttributeDefs.system_mode.id
246+
]
247+
== Thermostat.SystemMode.Cool
248+
)
243249

244250
# -- Off (by-name)
245251
success, fail = await bosch_thermostat_cluster.write_attributes(

zhaquirks/bosch/rbsh_trv0_zb_eu.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ class BoschControlSequenceOfOperation(t.enum8):
122122
Thermostat.SystemMode.Auto: BoschOperatingMode.Schedule,
123123
}
124124

125-
"""Bosch display orientation enum to uint8_t mapping."""
126-
DISPLAY_ORIENTATION_ENUM_TO_INT_MAP = {
127-
BoschDisplayOrientation.Normal: 0x00,
128-
BoschDisplayOrientation.Flipped: 0x01,
129-
}
130-
131125
"""Bosch Attributes Reporting Configuration"""
132126
BOSCH_ATTR_REPORT_CONFIG = ReportingConfig(
133127
min_interval=10, max_interval=10800, reportable_change=1

0 commit comments

Comments
 (0)