From b058742404a6bcac48b6a1df1336591f13206ce1 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 16 Dec 2019 09:33:11 +0100 Subject: [PATCH] Fix condition typo (#29989) --- homeassistant/components/climate/strings.json | 2 +- homeassistant/components/device_tracker/strings.json | 4 ++-- homeassistant/components/vacuum/strings.json | 2 +- script/scaffold/generate.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/climate/strings.json b/homeassistant/components/climate/strings.json index a2ceeff2143..ff071aed083 100644 --- a/homeassistant/components/climate/strings.json +++ b/homeassistant/components/climate/strings.json @@ -1,6 +1,6 @@ { "device_automation": { - "condtion_type": { + "condition_type": { "is_hvac_mode": "{entity_name} is set to a specific HVAC mode", "is_preset_mode": "{entity_name} is set to a specific preset mode" }, diff --git a/homeassistant/components/device_tracker/strings.json b/homeassistant/components/device_tracker/strings.json index 7e0691654a0..285bac2cb4b 100644 --- a/homeassistant/components/device_tracker/strings.json +++ b/homeassistant/components/device_tracker/strings.json @@ -1,8 +1,8 @@ { "device_automation": { - "condtion_type": { + "condition_type": { "is_home": "{entity_name} is home", "is_not_home": "{entity_name} is not home" } } -} \ No newline at end of file +} diff --git a/homeassistant/components/vacuum/strings.json b/homeassistant/components/vacuum/strings.json index 0300242a506..4eee3f359b5 100644 --- a/homeassistant/components/vacuum/strings.json +++ b/homeassistant/components/vacuum/strings.json @@ -1,6 +1,6 @@ { "device_automation": { - "condtion_type": { + "condition_type": { "is_docked": "{entity_name} is docked", "is_cleaning": "{entity_name} is cleaning" }, diff --git a/script/scaffold/generate.py b/script/scaffold/generate.py index 59767249d29..b2f669006a9 100644 --- a/script/scaffold/generate.py +++ b/script/scaffold/generate.py @@ -92,7 +92,7 @@ def _custom_tasks(template, info) -> None: info.update_strings( device_automation={ **info.strings().get("device_automation", {}), - "condtion_type": { + "condition_type": { "is_on": "{entity_name} is on", "is_off": "{entity_name} is off", },