Fix condition typo (#29989)

This commit is contained in:
Paulus Schoutsen 2019-12-16 09:33:11 +01:00 committed by GitHub
parent 3f32490ae6
commit b058742404
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{ {
"device_automation": { "device_automation": {
"condtion_type": { "condition_type": {
"is_hvac_mode": "{entity_name} is set to a specific HVAC mode", "is_hvac_mode": "{entity_name} is set to a specific HVAC mode",
"is_preset_mode": "{entity_name} is set to a specific preset mode" "is_preset_mode": "{entity_name} is set to a specific preset mode"
}, },

View file

@ -1,8 +1,8 @@
{ {
"device_automation": { "device_automation": {
"condtion_type": { "condition_type": {
"is_home": "{entity_name} is home", "is_home": "{entity_name} is home",
"is_not_home": "{entity_name} is not home" "is_not_home": "{entity_name} is not home"
} }
} }
} }

View file

@ -1,6 +1,6 @@
{ {
"device_automation": { "device_automation": {
"condtion_type": { "condition_type": {
"is_docked": "{entity_name} is docked", "is_docked": "{entity_name} is docked",
"is_cleaning": "{entity_name} is cleaning" "is_cleaning": "{entity_name} is cleaning"
}, },

View file

@ -92,7 +92,7 @@ def _custom_tasks(template, info) -> None:
info.update_strings( info.update_strings(
device_automation={ device_automation={
**info.strings().get("device_automation", {}), **info.strings().get("device_automation", {}),
"condtion_type": { "condition_type": {
"is_on": "{entity_name} is on", "is_on": "{entity_name} is on",
"is_off": "{entity_name} is off", "is_off": "{entity_name} is off",
}, },