Fix Home Assistant discovery message for running_state fan_only (#9547)

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
Adam Belebczuk 2021-11-07 12:38:51 -05:00 committed by GitHub
parent 91d90bdcf1
commit 9e216011d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ export default class HomeAssistant extends Extension {
discoveryEntry.mockProperties.push(state.property);
discoveryEntry.discovery_payload.action_topic = true;
discoveryEntry.discovery_payload.action_template = `{% set values = ` +
`{None:None,'idle':'off','heat':'heating','cool':'cooling','fan only':'fan'}` +
`{None:None,'idle':'off','heat':'heating','cool':'cooling','fan_only':'fan'}` +
` %}{{ values[value_json.${state.property}] }}`;
}