Skip to content

Automations file can't be empty with packages  #13412

Closed
@metbril

Description

Home Assistant release (hass --version):
0.65.5

Python release (python3 --version):
3.6.3.

Component/platform:
core

Description of problem:
When using automations in packages in combination with a separate main automations file, the latter cannot be empty. It requires at least one dummy automation.

https://community.home-assistant.io/t/automation-editor-with-packages/18427

Expected:

Automations file can be configured and can be empty.

Problem-relevant configuration.yaml entries and steps to reproduce:

configuration.yaml

automation: !include include/automation.yaml

Traceback (if applicable):

Error when automation.yaml is empty

Testing configuration at /config
Failed config
  automation: 
    - Invalid config for [automation]: required key not provided @ data['action']. Got None
required key not provided @ data['trigger']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/

Additional info:

To get a valid config, as a workaround, at least add this dummy automation

include/automation.yaml

- alias: 'dummy'
  hide_entity: true
  initial_state: false
  trigger:
  action:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions