Expose value_step to home assistant if it has been set on a numeric type (#14313)

This commit is contained in:
Ben Windsor
2022-10-04 18:02:35 +02:00
committed by GitHub
parent 98ceaa04bb
commit db3730ea44
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -756,6 +756,7 @@ export default class HomeAssistant extends Extension {
command_topic_prefix: endpoint,
command_topic_postfix: firstExpose.property,
...(firstExpose.unit && {unit_of_measurement: firstExpose.unit}),
...(firstExpose.value_step && {step: firstExpose.value_step}),
...lookup[firstExpose.name],
},
};
+1 -1
View File
@@ -100,7 +100,7 @@ declare global {
interface DefinitionExpose {
type: string, name?: string, features?: DefinitionExposeFeature[],
endpoint?: string, values?: string[], value_off?: string, value_on?: string,
endpoint?: string, values?: string[], value_off?: string, value_on?: string, value_step?: number,
access: number, property: string, unit?: string,
value_min?: number, value_max?: number}