Remove groups.yaml from default config (#63366)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
parent
8e46dff2a2
commit
d4310f0d70
2 changed files with 0 additions and 11 deletions
|
@ -94,7 +94,6 @@ default_config:
|
||||||
tts:
|
tts:
|
||||||
- platform: google_translate
|
- platform: google_translate
|
||||||
|
|
||||||
group: !include {GROUP_CONFIG_PATH}
|
|
||||||
automation: !include {AUTOMATION_CONFIG_PATH}
|
automation: !include {AUTOMATION_CONFIG_PATH}
|
||||||
script: !include {SCRIPT_CONFIG_PATH}
|
script: !include {SCRIPT_CONFIG_PATH}
|
||||||
scene: !include {SCENE_CONFIG_PATH}
|
scene: !include {SCENE_CONFIG_PATH}
|
||||||
|
@ -298,7 +297,6 @@ def _write_default_config(config_dir: str) -> bool:
|
||||||
config_path = os.path.join(config_dir, YAML_CONFIG_FILE)
|
config_path = os.path.join(config_dir, YAML_CONFIG_FILE)
|
||||||
secret_path = os.path.join(config_dir, SECRET_YAML)
|
secret_path = os.path.join(config_dir, SECRET_YAML)
|
||||||
version_path = os.path.join(config_dir, VERSION_FILE)
|
version_path = os.path.join(config_dir, VERSION_FILE)
|
||||||
group_yaml_path = os.path.join(config_dir, GROUP_CONFIG_PATH)
|
|
||||||
automation_yaml_path = os.path.join(config_dir, AUTOMATION_CONFIG_PATH)
|
automation_yaml_path = os.path.join(config_dir, AUTOMATION_CONFIG_PATH)
|
||||||
script_yaml_path = os.path.join(config_dir, SCRIPT_CONFIG_PATH)
|
script_yaml_path = os.path.join(config_dir, SCRIPT_CONFIG_PATH)
|
||||||
scene_yaml_path = os.path.join(config_dir, SCENE_CONFIG_PATH)
|
scene_yaml_path = os.path.join(config_dir, SCENE_CONFIG_PATH)
|
||||||
|
@ -316,10 +314,6 @@ def _write_default_config(config_dir: str) -> bool:
|
||||||
with open(version_path, "wt", encoding="utf8") as version_file:
|
with open(version_path, "wt", encoding="utf8") as version_file:
|
||||||
version_file.write(__version__)
|
version_file.write(__version__)
|
||||||
|
|
||||||
if not os.path.isfile(group_yaml_path):
|
|
||||||
with open(group_yaml_path, "wt", encoding="utf8"):
|
|
||||||
pass
|
|
||||||
|
|
||||||
if not os.path.isfile(automation_yaml_path):
|
if not os.path.isfile(automation_yaml_path):
|
||||||
with open(automation_yaml_path, "wt", encoding="utf8") as automation_file:
|
with open(automation_yaml_path, "wt", encoding="utf8") as automation_file:
|
||||||
automation_file.write("[]")
|
automation_file.write("[]")
|
||||||
|
|
|
@ -41,7 +41,6 @@ CONFIG_DIR = get_test_config_dir()
|
||||||
YAML_PATH = os.path.join(CONFIG_DIR, config_util.YAML_CONFIG_FILE)
|
YAML_PATH = os.path.join(CONFIG_DIR, config_util.YAML_CONFIG_FILE)
|
||||||
SECRET_PATH = os.path.join(CONFIG_DIR, SECRET_YAML)
|
SECRET_PATH = os.path.join(CONFIG_DIR, SECRET_YAML)
|
||||||
VERSION_PATH = os.path.join(CONFIG_DIR, config_util.VERSION_FILE)
|
VERSION_PATH = os.path.join(CONFIG_DIR, config_util.VERSION_FILE)
|
||||||
GROUP_PATH = os.path.join(CONFIG_DIR, config_util.GROUP_CONFIG_PATH)
|
|
||||||
AUTOMATIONS_PATH = os.path.join(CONFIG_DIR, config_util.AUTOMATION_CONFIG_PATH)
|
AUTOMATIONS_PATH = os.path.join(CONFIG_DIR, config_util.AUTOMATION_CONFIG_PATH)
|
||||||
SCRIPTS_PATH = os.path.join(CONFIG_DIR, config_util.SCRIPT_CONFIG_PATH)
|
SCRIPTS_PATH = os.path.join(CONFIG_DIR, config_util.SCRIPT_CONFIG_PATH)
|
||||||
SCENES_PATH = os.path.join(CONFIG_DIR, config_util.SCENE_CONFIG_PATH)
|
SCENES_PATH = os.path.join(CONFIG_DIR, config_util.SCENE_CONFIG_PATH)
|
||||||
|
@ -67,9 +66,6 @@ def teardown():
|
||||||
if os.path.isfile(VERSION_PATH):
|
if os.path.isfile(VERSION_PATH):
|
||||||
os.remove(VERSION_PATH)
|
os.remove(VERSION_PATH)
|
||||||
|
|
||||||
if os.path.isfile(GROUP_PATH):
|
|
||||||
os.remove(GROUP_PATH)
|
|
||||||
|
|
||||||
if os.path.isfile(AUTOMATIONS_PATH):
|
if os.path.isfile(AUTOMATIONS_PATH):
|
||||||
os.remove(AUTOMATIONS_PATH)
|
os.remove(AUTOMATIONS_PATH)
|
||||||
|
|
||||||
|
@ -87,7 +83,6 @@ async def test_create_default_config(hass):
|
||||||
assert os.path.isfile(YAML_PATH)
|
assert os.path.isfile(YAML_PATH)
|
||||||
assert os.path.isfile(SECRET_PATH)
|
assert os.path.isfile(SECRET_PATH)
|
||||||
assert os.path.isfile(VERSION_PATH)
|
assert os.path.isfile(VERSION_PATH)
|
||||||
assert os.path.isfile(GROUP_PATH)
|
|
||||||
assert os.path.isfile(AUTOMATIONS_PATH)
|
assert os.path.isfile(AUTOMATIONS_PATH)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue