{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2054","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2054/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2054/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2054/events","html_url":"https://github.com/home-assistant/home-assistant/pull/2054","id":154554391,"number":2054,"title":"add include_dir constructor for yaml parsing","user":{"login":"mnestor","id":1479160,"avatar_url":"https://avatars.githubusercontent.com/u/1479160?v=3","gravatar_id":"","url":"https://api.github.com/users/mnestor","html_url":"https://github.com/mnestor","followers_url":"https://api.github.com/users/mnestor/followers","following_url":"https://api.github.com/users/mnestor/following{/other_user}","gists_url":"https://api.github.com/users/mnestor/gists{/gist_id}","starred_url":"https://api.github.com/users/mnestor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnestor/subscriptions","organizations_url":"https://api.github.com/users/mnestor/orgs","repos_url":"https://api.github.com/users/mnestor/repos","events_url":"https://api.github.com/users/mnestor/events{/privacy}","received_events_url":"https://api.github.com/users/mnestor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-12T18:49:26Z","updated_at":"2016-05-14T03:52:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/2054","html_url":"https://github.com/home-assistant/home-assistant/pull/2054","diff_url":"https://github.com/home-assistant/home-assistant/pull/2054.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/2054.patch"},"body":"**Description:**\r\nWhen breaking up your config to multiple files you end up with a bunch of includes. This will allow you to include a whole dir which will get parsed out to include all *.yaml files\r\n\r\nBefore:\r\nconfiguration.yaml\r\n```yaml\r\nscript: !include scripts.yaml\r\nautomation: !include automation.yaml\r\n```\r\nscripts.yaml\r\n```yaml\r\nscript1: !include scripts/script1.yaml\r\nscript2: !include scripts/script2.yaml\r\nscript3: !include scripts/script3.yaml\r\n```\r\nautomation.yaml\r\n```yaml\r\n- !include automation/auto1.yaml\r\n- !include automation/auto2.yaml\r\n- !include automation/auto3.yaml\r\n```\r\n\r\nAfter:\r\nconfiguration.yaml\r\n```yaml\r\nscript: !include_named_dir scripts\r\nautomation: !include_list_dir automation\r\n```\r\n\r\n**Related issue (if applicable):** #\r\n\r\n**Example entry for `configuration.yaml` (if applicable):**\r\n```yaml\r\n\r\n```\r\n\r\n**Checklist:**\r\n\r\nIf code communicates with devices:\r\n  - [ ] Local tests with `tox` run successfully. **Your PR cannot be merged unless tests pass**\r\n  - [ ] New dependencies have been added to the `REQUIREMENTS` variable ([example][ex-requir]).\r\n  - [ ] New dependencies are only imported inside functions that use them ([example][ex-import]).\r\n  - [ ] New dependencies have been added to `requirements_all.txt` by running `script/gen_requirements_all.py`.\r\n  - [ ] New files were added to `.coveragerc`.\r\n\r\nIf the code does not interact with devices:\r\n  - [ ] Local tests with `tox` run successfully. **Your PR cannot be merged unless tests pass**\r\n  - [ ] Tests have been added to verify that the new code works.\r\n\r\n[fork]: http://stackoverflow.com/a/7244456\r\n[squash]: https://github.com/ginatrapani/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit\r\n[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L16\r\n[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L51\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/219198727","html_url":"https://github.com/home-assistant/home-assistant/pull/2054#issuecomment-219198727","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/2054","id":219198727,"user":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T03:52:28Z","updated_at":"2016-05-14T03:52:28Z","body":"I love it!!!  Yes please!"}}