mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
Fix value_min/max not correct for Home Assistant number when 0. https://github.com/Koenkk/zigbee-herdsman-converters/issues/3229
This commit is contained in:
@@ -542,8 +542,8 @@ export default class HomeAssistant extends Extension {
|
||||
command_topic: true,
|
||||
command_topic_prefix: endpoint,
|
||||
command_topic_postfix: firstExpose.property,
|
||||
min: firstExpose.value_min ? firstExpose.value_min : -65535,
|
||||
max: firstExpose.value_max ? firstExpose.value_max : 65535,
|
||||
min: firstExpose.value_min != null ? firstExpose.value_min : -65535,
|
||||
max: firstExpose.value_max != null ? firstExpose.value_max : 65535,
|
||||
...lookup[firstExpose.name],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user