Fix Home Assistant discovery for select having numbers as options (#9268)

* Updated select entities to parse values as string

To prevent 'invalid option for select' error

* Update homeassistant.ts

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
Dirk van DonkelaarandKoen Kanters authored and GitHub committed 2021-10-24 15:22:09 +02:00
1 parent 16c3f912b1
commit 387378e935
1 file changed
+1 -1
+1 -1
View File
@@ -677,7 +677,7 @@ export default class HomeAssistant extends Extension {
command_topic_prefix: endpoint,
command_topic: true,
command_topic_postfix: firstExpose.property,
options: firstExpose.values,
options: firstExpose.values.map((v) => v.toString()),
...lookup[firstExpose.name],
},
});