{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9143","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9143/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9143/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9143/events","html_url":"https://github.com/home-assistant/home-assistant/issues/9143","id":253099633,"number":9143,"title":"USPS Errors -- 0.52","user":{"login":"brianjking","id":6786817,"avatar_url":"https://avatars0.githubusercontent.com/u/6786817?v=4","gravatar_id":"","url":"https://api.github.com/users/brianjking","html_url":"https://github.com/brianjking","followers_url":"https://api.github.com/users/brianjking/followers","following_url":"https://api.github.com/users/brianjking/following{/other_user}","gists_url":"https://api.github.com/users/brianjking/gists{/gist_id}","starred_url":"https://api.github.com/users/brianjking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianjking/subscriptions","organizations_url":"https://api.github.com/users/brianjking/orgs","repos_url":"https://api.github.com/users/brianjking/repos","events_url":"https://api.github.com/users/brianjking/events{/privacy}","received_events_url":"https://api.github.com/users/brianjking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":72,"created_at":"2017-08-26T15:06:22Z","updated_at":"2017-11-22T20:53:55Z","closed_at":null,"author_association":"NONE","body":"Make sure you are running the latest version of Home Assistant before reporting an issue.\r\n\r\nYou should only file an issue if you found a bug. Feature and enhancement requests should go in [the Feature Requests section](https://community.home-assistant.io/c/feature-requests) of our community forum:\r\n\r\n**Home Assistant release (`hass --version`):**\r\n\r\n```0.52```\r\n\r\n**Python release (`python3 --version`):**\r\n\r\n```Python 3.4.2```\r\n\r\n**Component/platform:**\r\n\r\nUSPS\r\n\r\n**Description of problem:**\r\n\r\nUSPS fails to init/login and subsequently displays persistent notification in UI. Shows errors in log too (see log info below).\r\n\r\n**Expected:**\r\n\r\nUSPS is displayed in UI.\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n```yaml\r\n\r\n```\r\n\r\n1. \r\n2. \r\n3. \r\n\r\n**Traceback (if applicable):**\r\n```bash\r\n2017-08-26 09:55:41 INFO (MainThread) [homeassistant.setup] Setting up usps\r\n2017-08-26 09:55:41 ERROR (MainThread) [homeassistant.setup] Error during setup of component usps\r\nTraceback (most recent call last):\r\n  File \"/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/setup.py\", line 194, in _async_setup_component\r\n    component.setup, hass, processed_config)\r\n  File \"/usr/lib/python3.4/asyncio/futures.py\", line 388, in __iter__\r\n    yield self  # This tells Task to wait for completion.\r\n  File \"/usr/lib/python3.4/asyncio/tasks.py\", line 286, in _wakeup\r\n    value = future.result()\r\n  File \"/usr/lib/python3.4/asyncio/futures.py\", line 277, in result\r\n    raise self._exception\r\n  File \"/usr/lib/python3.4/concurrent/futures/thread.py\", line 54, in run\r\n    result = self.fn(*self.args, **self.kwargs)\r\n  File \"/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/usps.py\", line 40, in setup\r\n    conf = config[DOMAIN]\r\nKeyError: 'usps'\r\n2017-08-26 09:55:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=message=The following components and platforms could not be set up:\r\n* [usps](https://home-assistant.io/components/usps/)\r\nPlease check your config, notification_id=invalid_config, title=Invalid config, service=create, domain=persistent_notification, service_call_id=1974245168-5>\r\n2017-08-26 09:55:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:\r\n* [usps](https://home-assistant.io/components/usps/)\r\nPlease check your config; title=Invalid config @ 2017-08-26T09:55:41.967178-05:00>, old_state=None, entity_id=persistent_notification.invalid_config>\r\n2017-08-26 09:55:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1974245168-5>\r\n2017-08-26 09:55:41 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.usps. Setup failed for dependencies: usps\r\n2017-08-26 09:55:41 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.usps: Could not setup all dependencies.\r\n2017-08-26 09:55:41 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.usps. Setup failed for dependencies: usps\r\n2017-08-26 09:55:41 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.usps: Could not setup all dependencies.\r\n2017-08-26 09:55:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=message=The following components and platforms could not be set up:\r\n* sensor.usps\r\n* [usps](https://home-assistant.io/components/usps/)\r\nPlease check your config, notification_id=invalid_config, title=Invalid config, service=create, domain=persistent_notification, service_call_id=1974245168-6>\r\n2017-08-26 09:55:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=message=The following components and platforms could not be set up:\r\n* camera.usps\r\n* sensor.usps\r\n* [usps](https://home-assistant.io/components/usps/)\r\nPlease check your config, notification_id=invalid_config, title=Invalid config, service=create, domain=persistent_notification, service_call_id=1974245168-7>\r\n2017-08-26 09:55:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:\r\n* sensor.usps\r\n* [usps](https://home-assistant.io/components/usps/)\r\nPlease check your config; title=Invalid config @ 2017-08-26T09:55:42.007400-05:00>, old_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:\r\n* [usps](https://home-assistant.io/components/usps/)\r\nPlease check your config; title=Invalid config @ 2017-08-26T09:55:41.967178-05:00>, entity_id=persistent_notification.invalid_config>\r\n2017-08-26 09:55:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1974245168-6>\r\n2017-08-26 09:55:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:\r\n* camera.usps\r\n* sensor.usps\r\n* [usps](https://home-assistant.io/components/usps/)\r\nPlease check your config; title=Invalid config @ 2017-08-26T09:55:42.019753-05:00>, old_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:\r\n* sensor.usps\r\n* [usps](https://home-assistant.io/components/usps/)\r\nPlease check your config; title=Invalid config @ 2017-08-26T09:55:42.007400-05:00>, entity_id=persistent_notification.invalid_config>\r\n```\r\n\r\n**Additional info:**\r\n\r\n* Appears that Docker version also has same issue see #9142 \r\n* My YAML config https://github.com/brianjking/homeassistant-config/blob/master/sensor/usps.yaml\r\n\r\nPing @mezz64 @happyleavesaoc Any guidance, please? <3 Thank you! \r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/346470162","html_url":"https://github.com/home-assistant/home-assistant/issues/9143#issuecomment-346470162","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9143","id":346470162,"user":{"login":"happyleavesaoc","id":11217032,"avatar_url":"https://avatars2.githubusercontent.com/u/11217032?v=4","gravatar_id":"","url":"https://api.github.com/users/happyleavesaoc","html_url":"https://github.com/happyleavesaoc","followers_url":"https://api.github.com/users/happyleavesaoc/followers","following_url":"https://api.github.com/users/happyleavesaoc/following{/other_user}","gists_url":"https://api.github.com/users/happyleavesaoc/gists{/gist_id}","starred_url":"https://api.github.com/users/happyleavesaoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/happyleavesaoc/subscriptions","organizations_url":"https://api.github.com/users/happyleavesaoc/orgs","repos_url":"https://api.github.com/users/happyleavesaoc/repos","events_url":"https://api.github.com/users/happyleavesaoc/events{/privacy}","received_events_url":"https://api.github.com/users/happyleavesaoc/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T20:53:55Z","updated_at":"2017-11-22T20:53:55Z","author_association":"COLLABORATOR","body":"@brianjking Neither the mailpieces or packages portion will work, since they both rely on login.\r\n\r\nWhich mobile apps?\r\n\r\nGenerally there are two methods:\r\n1) You have to enter the tracking numbers -- the USPS API supports that -- this is not *discovering* tracking numbers based on address, unfortunately.\r\n2) Other services monitor your email address for emails related to packages, once your turn on email notifications.\r\n"}}
{"actor":{"display_login":"happyleavesaoc"}}