fix: Home Assistant: Translate boolean to state topic for current_humidity_topic (#30014)

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
burmistrzakandKoen Kanters authored and GitHub committed 2025-12-06 20:46:27 +01:00
1 parent 334fa2a60d
commit 9ca85dfac8
5 files changed
+67

No files matched your search

+4
View File
@@ -1681,6 +1681,10 @@ export class HomeAssistant extends Extension {
payload.action_topic = stateTopic;
}
if (payload.current_humidity_topic) {
payload.current_humidity_topic = stateTopic;
}
// Override configuration with user settings.
if (entity.options.homeassistant != null) {
const add = (obj: KeyValue, ignoreName: boolean): void => {