Skip to content

Commit 2ea6d8a

Browse files
Apply pre-commit auto fixes
1 parent b828eaf commit 2ea6d8a

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

zhaquirks/bosch/rbsh_rth0_zb_eu.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
from zigpy.quirks import CustomCluster
44
from zigpy.quirks.v2 import QuirkBuilder
5-
from zigpy.quirks.v2.homeassistant import EntityType, PERCENTAGE
6-
import zigpy.types as t
7-
from zigpy.zcl.clusters.hvac import (
8-
Thermostat,
9-
UserInterface,
10-
TemperatureDisplayMode,
11-
)
5+
from zigpy.quirks.v2.homeassistant import PERCENTAGE, EntityType
126
from zigpy.quirks.v2.homeassistant.sensor import SensorStateClass
7+
import zigpy.types as t
8+
from zigpy.zcl.clusters.hvac import TemperatureDisplayMode, Thermostat, UserInterface
139
from zigpy.zcl.foundation import ZCLAttributeDef
1410

1511
"""Bosch specific thermostat attribute ids."""
@@ -55,10 +51,8 @@ class BoschThermostatCluster(CustomCluster, Thermostat):
5551

5652
# Works around an issue where ZHA thinks "Heating_Only" can't be changed
5753
# 0x06 is "centralite specific", but works perfectly for this thermostat as well
58-
_CONSTANT_ATTRIBUTES = {
59-
Thermostat.AttributeDefs.ctrl_sequence_of_oper.id: 0x06
60-
}
61-
54+
_CONSTANT_ATTRIBUTES = {Thermostat.AttributeDefs.ctrl_sequence_of_oper.id: 0x06}
55+
6256
class AttributeDefs(Thermostat.AttributeDefs):
6357
"""Bosch thermostat manufacturer specific attributes."""
6458

@@ -86,7 +80,7 @@ class AttributeDefs(Thermostat.AttributeDefs):
8680
type=State,
8781
is_manufacturer_specific=True,
8882
)
89-
83+
9084
temperature_display_mode = ZCLAttributeDef(
9185
id=0x0000,
9286
type=TemperatureDisplayMode,

0 commit comments

Comments
 (0)