{"action":"created","issue":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/1663","repository_url":"https://api.github.com/repos/balloob/home-assistant","labels_url":"https://api.github.com/repos/balloob/home-assistant/issues/1663/labels{/name}","comments_url":"https://api.github.com/repos/balloob/home-assistant/issues/1663/comments","events_url":"https://api.github.com/repos/balloob/home-assistant/issues/1663/events","html_url":"https://github.com/balloob/home-assistant/pull/1663","id":145084765,"number":1663,"title":"bootstrap platform components: adjust instead of replace config","user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-01T04:34:46Z","updated_at":"2016-04-01T18:37:39Z","closed_at":"2016-04-01T04:38:40Z","pull_request":{"url":"https://api.github.com/repos/balloob/home-assistant/pulls/1663","html_url":"https://github.com/balloob/home-assistant/pull/1663","diff_url":"https://github.com/balloob/home-assistant/pull/1663.diff","patch_url":"https://github.com/balloob/home-assistant/pull/1663.patch"},"body":"**Description:**\r\nThis fixes the issue that we failed to setup dependencies of platforms because they did not have the correct config.\r\n\r\n**Related issue (if applicable):** #1656 \r\n\r\n**Checklist:**\r\n\r\nIf the code does not interact with devices:\r\n  - [x] Local tests with `tox` run successfully. **Your PR cannot be merged unless tests pass**\r\n  - [x] 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/balloob/home-assistant/blob/dev/homeassistant/components/keyboard.py#L16\r\n[ex-import]: https://github.com/balloob/home-assistant/blob/dev/homeassistant/components/keyboard.py#L51\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/comments/204508294","html_url":"https://github.com/balloob/home-assistant/pull/1663#issuecomment-204508294","issue_url":"https://api.github.com/repos/balloob/home-assistant/issues/1663","id":204508294,"user":{"login":"turbokongen","id":16622752,"avatar_url":"https://avatars.githubusercontent.com/u/16622752?v=3","gravatar_id":"","url":"https://api.github.com/users/turbokongen","html_url":"https://github.com/turbokongen","followers_url":"https://api.github.com/users/turbokongen/followers","following_url":"https://api.github.com/users/turbokongen/following{/other_user}","gists_url":"https://api.github.com/users/turbokongen/gists{/gist_id}","starred_url":"https://api.github.com/users/turbokongen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turbokongen/subscriptions","organizations_url":"https://api.github.com/users/turbokongen/orgs","repos_url":"https://api.github.com/users/turbokongen/repos","events_url":"https://api.github.com/users/turbokongen/events{/privacy}","received_events_url":"https://api.github.com/users/turbokongen/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T18:37:39Z","updated_at":"2016-04-01T18:37:39Z","body":"I am terrible sorry! My mistake. I have only done git fetch upstream and\nnot a rebase. Everything fine now!\nI apolagize for this.\n\nOn Fri, Apr 1, 2016 at 7:09 PM, Paulus Schoutsen <notifications@github.com>\nwrote:\n\n> Are you sure you're on the latest dev version?\n>\n> On Fri, Apr 1, 2016, 09:52 John Arild Berentsen <notifications@github.com>\n> wrote:\n>\n> > Yes, still the same problem.\n> >\n> > 16-04-01 18:14:35 homeassistant.loader: Loaded sensor.rfxtrx from\n> homeassistant.components.sensor.rfxtrx\n> > 16-04-01 18:14:35 homeassistant.bootstrap: Error during setup of\n> component rfxtrx\n> > Traceback (most recent call last):\n> > File \"/home/turbokongen/home-assistant/homeassistant/bootstrap.py\", line\n> 127, in _setup_component\n> > if not component.setup(hass, config):\n> > File\n> \"/home/turbokongen/home-assistant/homeassistant/components/rfxtrx.py\", line\n> 57, in setup\n> > if ATTR_DEVICE not in config[DOMAIN]:\n> > KeyError: 'rfxtrx'\n> > 16-04-01 18:14:35 homeassistant.bootstrap: Unable to prepare setup for\n> platform sensor.rfxtrx because dependency rfxtrx could not be initialized\n> > -\n> > -\n> > 16-04-01 18:14:39 homeassistant.loader: Loaded switch.rfxtrx from\n> homeassistant.components.switch.rfxtrx\n> > Traceback (most recent call last):\n> > File \"/home/turbokongen/home-assistant/homeassistant/bootstrap.py\", line\n> 127, in _setup_component\n> > if not component.setup(hass, config):\n> > File\n> \"/home/turbokongen/home-assistant/homeassistant/components/rfxtrx.py\", line\n> 57, in setup\n> > if ATTR_DEVICE not in config[DOMAIN]:\n> > KeyError: 'rfxtrx'\n> > 16-04-01 18:14:39 homeassistant.bootstrap: Unable to prepare setup for\n> platform switch.rfxtrx because dependency rfxtrx could not be initialized\n> >\n> > -\n> > -\n> >\n> > 16-04-01 18:14:49 homeassistant.loader: Loaded light.rfxtrx from\n> homeassistant.components.light.rfxtrx\n> > 16-04-01 18:14:49 homeassistant.bootstrap: Error during setup of\n> component rfxtrx\n> > Traceback (most recent call last):\n> > File \"/home/turbokongen/home-assistant/homeassistant/bootstrap.py\", line\n> 127, in _setup_component\n> > if not component.setup(hass, config):\n> > File\n> \"/home/turbokongen/home-assistant/homeassistant/components/rfxtrx.py\", line\n> 57, in setup\n> > if ATTR_DEVICE not in config[DOMAIN]:\n> > KeyError: 'rfxtrx'\n> > 16-04-01 18:14:49 homeassistant.bootstrap: Unable to prepare setup for\n> platform light.rfxtrx because dependency rfxtrx could not be initialized\n> >\n> > Configuration.yaml\n> >\n> > # RFXtrx433E settingsrfxtrx:\n> > device:\n> /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1Z69C6G-if00-port0##########################################################\n> Sensorer#########################################################sensor:\n> !include\n> sensor.yaml##########################################################\n> Brytere#########################################################switch:\n> !include\n> switches.yaml##########################################################\n> Lysbrytere#########################################################light:\n> !include light.yaml\n> >\n> > switches.yaml\n> >\n> > - platform: rfxtrx\n> > devices:\n> > 008bfd61:\n> > name: 'Bryter kjøkkenbenk'\n> > packetid: 0b11008b0008bfd601010f50\n> > 008bfd62:\n> > name: 'Bryter taklys kjøkken'\n> > packetid: 0b11007d0008bfd602010f50\n> > 0196cda10:\n> > name: 'Bevegelse på bad 1.etg'\n> > packetid: 0b11000500196cda0a000060# 2b0effa15:# name: 'Varmekabel bad\n> 1.etg'# packetid: 0b11000402b0effa0f010f70\n> > 0c861561:\n> > name: 'Bilvarmer varebilen'\n> > packetid: 0b11000f00c8615601010f70\n> > 11da2e210:\n> > name: 'Dør til kjelleren'\n> > packetid: 0b110035011da2e20a010f70\n> > 253f6aa16:\n> > name: 'Hoveddør'\n> > packetid: 0b1100410253f6aa10010f70\n> > 1010a4e10:\n> > name: 'Bevegelse på verkstedet'\n> > packetid: 0b11007301010a4e0a010f50\n> > 14387fa15:\n> > name: 'Bryter Entre'\n> > packetid: 0b11001c014387fa0f000060\n> > 14387fa16:\n> > name: 'Bryter Gang'\n> > packetid: 0b11000e014387fa10000050\n> > 11f8f3610:\n> > name: 'Garasjeporten'\n> > packetid: 0b110038011f8f360a000070\n> > 0ee28c29:\n> > name: 'Kompressor'\n> > packetid: 0b11004e00ee28c209010f70\n> > 0ae6c9a1:\n> > name: 'Tv benken i stua'\n> > packetid: 0b11007800ae6c9a01000070\n> > 11b2de610:\n> > name: 'Lyssensor'\n> > packetid: 0b11000a011b2de60a010f70\n> > 24607851:\n> > name: 'Ringeklokke'\n> > packetid: 0b1100340246078501010f70\n> > 11f683e1:\n> > name: 'Ringeklokke knapp'\n> > packetid: 0b11009d011f683e01040f70\n> > assumed_state: false\n> > 0ffa69e10:\n> > name: 'Bevegelse garasje'\n> > packetid: 0b11009600ffa69e0a010f70\n> > 059ca0e10:\n> > name: 'Bevegelse på bad 2etg'\n> > packetid: 0b1100170059ca0e0a010f70\n> > 0fd4fda10:\n> > name: 'Bevegelse i loftsgang'\n> > packetid: 0b11003900fd4fda0a010f70\n> > 10597ea16:\n> > name: 'Bryter loftsgang'\n> > packetid: 0b110002010597ea10010f70\n> > 08d1bf615:\n> > name: 'Bryter stue'\n> > packetid: 0b11000c008d1bf60f010f50\n> > 08d1bf616:\n> > name: 'Bryter spisestue'\n> > packetid: 0b110010008d1bf610010f60\n> > 2a58fea16:\n> > name: 'Bryter loftstue'\n> > packetid: 0b11003d02a58fea10010f70\n> > 24587ea16:\n> > name: 'Bryter Julies rom'\n> > packetid: 0b110046024587ea10010f70\n> > 1c9a3ea16:\n> > name: 'Bryter Jennys rom'\n> > packetid: 0b11005101c9a3ea10010f70\n> > 08593ea16:\n> > name: 'Natt morgen soverom'\n> > packetid: 0b1100b6008593ea10010f60\n> > fire_event: True\n> > 2bc8ede6:\n> > name: 'Varmeovn verksted'\n> > packetid: 0b11001b02bc8ede06010f70\n> > 1c4aaaa16:\n> > name: 'Boddør loft'\n> > packetid: 0b1100e701c4aaaa10010f70\n> > 2c8c3865:\n> > name: 'Lys verksted'\n> > packetid: 0b11001102c8c38605010f70\n> > 02a72ba3:\n> > name: 'Kulelys Jenny'\n> > packetid: 0b110018002a72ba03010f70\n> > 0418cf71:\n> > name: 'Kulelys og skrivebordslys Julie'\n> > packetid: 0b11003000418cf701010f70\n> > 1978ac51:\n> > name: 'Lys bad 1.etg'\n> > packetid: 0b11001101978ac501010f70\n> > 29e70101:\n> > name: 'Lys bad 2.etg'\n> > packetid: 0b110028029e701001010f70\n> > 28d822d1:\n> > name: 'Lys garasje'\n> > packetid: 0b110040028d822d01010f70\n> > 09dabea16:\n> > name: 'Bryter kontoret'\n> > packetid: 0b110097009dabea10010f70\n> > fire_event: True\n> > 1da541e12:\n> > name: 'Skaplys stue'\n> > packetid: 0b11008301da541e0c010f70\n> > 1757fea16:\n> > name: 'Bryter soverom'\n> > packetid: 0b11006d01757fea10010f60\n> > automatic_add: True\n> >\n> > sensor.yaml\n> >\n> > - platform: rfxtrx\n> > automatic_add: true\n> > devices:\n> > sensor_8062:\n> > name: 'Energi Hus'\n> > packetid: 115a02008062020000270b00000000000069\n> > data_type: Energy usage\n> > sensor_8072:\n> > name: 'Ukjent Energi'\n> > packetid: 115a02108072020000437700000000000049\n> > data_type: Energy usage\n> > sensor_00c2:\n> > name: 'Ukjent Energi 2'\n> > packetid: 115a026b00c20000004fea00100000000049\n> > sensor_8862:\n> > name: 'Ukjent Energi 3'\n> > packetid: 115a02208862010000408300000000000050\n> > sensor_8c62:\n> > name: 'Ukjent Energi 4'\n> > packetid: 115a02148c620300003f7100000000000050\n> > sensor_8e62:\n> > name: 'Ukjent Energi 5'\n> > packetid: 115a02a38e62040008420f00000000000050\n> > sensor_0002:\n> > name: 'Ukjent Energi 6'\n> > packetid: 115a0221000204000018e600000000000059\n> > sensor_8002:\n> > name: 'Ukjent Energi 7'\n> > packetid: 115a02c280020200001e5e00000000000049\n> > sensor_9800:\n> > name: 'Gulvtemp Bad 1.etg'\n> > packetid: 085007089800013179\n> > data_type: Temperature\n> > sensor_9700:\n> > name: 'Lufttemp Bad 1.etg'\n> > packetid: 0a52090497000125140279\n> > data_type: Temperature\n> > sensor_a700:\n> > name: 'Kjøkken'\n> > packetid: 08500706a800801269\n> > data_type: Temperature\n> > sensor_df01:\n> > name: 'Temperatur i varebilen'\n> > packetid: 0a520a07df01000b2e0159\n> > data_type: Temperature\n> > sensor_a800:\n> > name: 'Ute mot Oksøy'\n> > packetid: 08500706a800801269\n> > data_type: Temperature\n> > sensor_df03:\n> > name: 'Ukjent temp'\n> > packetid: 0a520a91df0300073f0169\n> > sensor_f201:\n> > name: 'Ukjent temp 2'\n> > packetid: 0850094ef201000249\n> > sensor_3c0e:\n> > name: 'Ukjent temp 3'\n> > packetid: 0a52079d3c0e0056420149\n> > sensor_4a00:\n> > name: 'Ukjent Vind'\n> > packetid: 105606234a000151000000080000000059\n> > sensor_4900:\n> > name: 'Ukjent Vind 2'\n> > packetid: 105606054900002d000000fe0000000079\n> > sensor_5c5304:\n> > name: 'Bevegelse 1'\n> > packetid: 0820017d5c53040459\n> > sensor_1c130c:\n> > name: 'Bevegelse 2'\n> > packetid: 082001df1c130c0430\n> > sensor_a4ab0c:\n> > name: 'Bevegelse 3'\n> > packetid: 082001c9a4ab0c0449\n> >\n> > light.yaml\n> >\n> > - platform: rfxtrx\n> > devices:\n> > entre:\n> > name: 'Dimmer Entre'\n> > packetid: 0b110028000670910f020c70\n> > gang:\n> > name: 'Dimmer gang'\n> > packetid: 0b11008d02f55ee701020870\n> > gang_loft:\n> > name: 'Dimmer loftsgang'\n> > packetid: 0b11002a01eacfd401020c70\n> > loftstue:\n> > name: 'Dimmer loftstue'\n> > packetid: 0b11001703ceffb304020f70\n> > jennys_rom:\n> > name: 'Dimmer Jennys rom'\n> > packetid: 0b11001901d2b83b0c020f70\n> > spisestue:\n> > name: 'Dimmer stue'\n> > packetid: 0b11003502327eb601020f70\n> > stue:\n> > name: 'Dimmer spisestue'\n> > packetid: 0b11004301b4a1c201020f70\n> > kjokkenbenk:\n> > name: 'Dimmer kjøkkenbenk'\n> > packetid: 0b11003401eaff6a0d020c70\n> > taklys_kjokken:\n> > name: 'Dimmer taklys kjøkken'\n> > packetid: 0b110043036290c605020c70\n> > julies_rom:\n> > name: 'Dimmer Julies rom'\n> > packetid: 0b11008b00f7c22d03020f70\n> > kontoret:\n> > name: 'Dimmer kontoret'\n> > packetid: 0b1100660319b9de07020f70\n> > soverom:\n> > name: 'Dimmer soverom'\n> > packetid: 0b11009002bfce6007020c70\n> > automatic_add: True\n> >\n> > —\n> > You are receiving this because you modified the open/close state.\n> > Reply to this email directly or view it on GitHub\n> > <\n> https://github.com/balloob/home-assistant/pull/1663#issuecomment-204468545\n> >\n> >\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/balloob/home-assistant/pull/1663#issuecomment-204473871>\n>\n"}}