Skip to content

Commit a1557f1

Browse files
committed
change numbers to boxes, increase number of decimals
1 parent 157d220 commit a1557f1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

custom_components/plugwise_usb/number.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class PlugwiseNumberEntityDescription(
4646
native_unit_of_measurement=UnitOfTime.MINUTES,
4747
native_max_value=255,
4848
native_min_value=1,
49+
mode="box",
4950
),
5051
PlugwiseNumberEntityDescription(
5152
key="maintenance_interval",
@@ -79,6 +80,7 @@ class PlugwiseNumberEntityDescription(
7980
entity_category=EntityCategory.CONFIG,
8081
native_max_value=60,
8182
native_min_value=1,
83+
mode="box",
8284
),
8385
PlugwiseNumberEntityDescription(
8486
key="clock_interval",
@@ -100,6 +102,8 @@ class PlugwiseNumberEntityDescription(
100102
device_class=NumberDeviceClass.HUMIDITY,
101103
native_max_value=99,
102104
native_min_value=1,
105+
native_step=0.1,
106+
mode="box",
103107
),
104108
PlugwiseNumberEntityDescription(
105109
key="humidity_lower_bound",
@@ -110,6 +114,8 @@ class PlugwiseNumberEntityDescription(
110114
device_class=NumberDeviceClass.HUMIDITY,
111115
native_max_value=99,
112116
native_min_value=1,
117+
native_step=0.1,
118+
mode="box",
113119
),
114120
PlugwiseNumberEntityDescription(
115121
key="temperature_upper_bound",
@@ -120,6 +126,8 @@ class PlugwiseNumberEntityDescription(
120126
device_class=NumberDeviceClass.TEMPERATURE,
121127
native_max_value=60,
122128
native_min_value=1,
129+
native_step=0.1,
130+
mode="box",
123131
),
124132
PlugwiseNumberEntityDescription(
125133
key="temperature_lower_bound",
@@ -130,6 +138,8 @@ class PlugwiseNumberEntityDescription(
130138
device_class=NumberDeviceClass.TEMPERATURE,
131139
native_max_value=60,
132140
native_min_value=1,
141+
native_step=0.1,
142+
mode="box",
133143
),
134144
)
135145

@@ -204,7 +214,7 @@ def _handle_coordinator_update(self) -> None:
204214
"""Handle updated data from the coordinator."""
205215
data = self.coordinator.data.get(self.entity_description.node_feature, None)
206216
if data is None:
207-
_LOGGER.debug(
217+
_LOGGER.warning(
208218
"No %s number data for %s",
209219
self.entity_description.node_feature,
210220
self._node_info.mac,

0 commit comments

Comments
 (0)