Skip to content

Commit bc62e43

Browse files
pre-commit-ci[bot]Sopsy
authored andcommitted
Apply pre-commit auto fixes
1 parent 7d54e75 commit bc62e43

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

zhaquirks/bosch/rbsh_rth0_zb_eu.py

Lines changed: 4 additions & 10 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,9 +51,7 @@ 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-
}
54+
_CONSTANT_ATTRIBUTES = {Thermostat.AttributeDefs.ctrl_sequence_of_oper.id: 0x06}
6155

6256
class AttributeDefs(Thermostat.AttributeDefs):
6357
"""Bosch thermostat manufacturer specific attributes."""

0 commit comments

Comments
 (0)