{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3768","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3768/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3768/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3768/events","html_url":"https://github.com/home-assistant/home-assistant/issues/3768","id":181863542,"number":3768,"title":"Sun Platform causing servers startup to hang in 0.30.1","user":{"login":"joshughes","id":1671822,"avatar_url":"https://avatars.githubusercontent.com/u/1671822?v=3","gravatar_id":"","url":"https://api.github.com/users/joshughes","html_url":"https://github.com/joshughes","followers_url":"https://api.github.com/users/joshughes/followers","following_url":"https://api.github.com/users/joshughes/following{/other_user}","gists_url":"https://api.github.com/users/joshughes/gists{/gist_id}","starred_url":"https://api.github.com/users/joshughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshughes/subscriptions","organizations_url":"https://api.github.com/users/joshughes/orgs","repos_url":"https://api.github.com/users/joshughes/repos","events_url":"https://api.github.com/users/joshughes/events{/privacy}","received_events_url":"https://api.github.com/users/joshughes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-09T03:37:09Z","updated_at":"2016-10-10T22:39:53Z","closed_at":null,"body":"**Home Assistant release (`hass --version`):**\r\n0.30.1\r\n\r\n**Python release (`python3 --version`):**\r\nPython 3.5.2\r\n\r\n**Component/platform:**\r\nautomation\r\n\r\n**Description of problem:**\r\nWith the latest version any automation rule I have that involves the sun platform, it causes homeassistant to hang during startup\r\n\r\n**Expected:**\r\nHome assistant should start \r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n```yaml\r\n- alias: 'Lights on in the evening'\r\n  trigger:\r\n    - platform: sun\r\n      event: sunset\r\n      offset: \"-00:10:00\"\r\n  action:\r\n    - service: homeassistant.turn_on\r\n      entity_id: scene.night_lights_on\r\n```\r\n\r\n**Additional info:**\r\n\r\nHave downgraded to 0.29.7 and confirmed the above configuration works perfectly. When on 0.30.1 and I enable the above configuration home assistant hangs. When I disable it home assistant starts. From the logs it seems like when the sun platform is loaded is when the server hangs. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/252765123","html_url":"https://github.com/home-assistant/home-assistant/issues/3768#issuecomment-252765123","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3768","id":252765123,"user":{"login":"fanaticDavid","id":20402931,"avatar_url":"https://avatars.githubusercontent.com/u/20402931?v=3","gravatar_id":"","url":"https://api.github.com/users/fanaticDavid","html_url":"https://github.com/fanaticDavid","followers_url":"https://api.github.com/users/fanaticDavid/followers","following_url":"https://api.github.com/users/fanaticDavid/following{/other_user}","gists_url":"https://api.github.com/users/fanaticDavid/gists{/gist_id}","starred_url":"https://api.github.com/users/fanaticDavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanaticDavid/subscriptions","organizations_url":"https://api.github.com/users/fanaticDavid/orgs","repos_url":"https://api.github.com/users/fanaticDavid/repos","events_url":"https://api.github.com/users/fanaticDavid/events{/privacy}","received_events_url":"https://api.github.com/users/fanaticDavid/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T22:39:53Z","updated_at":"2016-10-10T22:39:53Z","body":"I don't seem to have any problems with version 0.30.1, despite having the following automation:\r\n```yaml\r\n- alias: \"Turn on scene before sunset\"\r\n  trigger:\r\n    - platform: sun\r\n      event: sunset\r\n      offset: '-00:45:00'\r\n  condition:\r\n    - condition: state\r\n      entity_id: group.living_area_lights\r\n      state: 'off'\r\n  action:\r\n    - service: script.living_area_lights\r\n```"}}
{"actor":{"display_login":"fanaticDavid"}}