{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7582","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7582/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7582/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7582/events","html_url":"https://github.com/home-assistant/home-assistant/pull/7582","id":228489417,"number":7582,"title":"Quickfix Bug #7384","user":{"login":"DavidLP","id":6951141,"avatar_url":"https://avatars2.githubusercontent.com/u/6951141?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidLP","html_url":"https://github.com/DavidLP","followers_url":"https://api.github.com/users/DavidLP/followers","following_url":"https://api.github.com/users/DavidLP/following{/other_user}","gists_url":"https://api.github.com/users/DavidLP/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidLP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidLP/subscriptions","organizations_url":"https://api.github.com/users/DavidLP/orgs","repos_url":"https://api.github.com/users/DavidLP/repos","events_url":"https://api.github.com/users/DavidLP/events{/privacy}","received_events_url":"https://api.github.com/users/DavidLP/received_events","type":"User","site_admin":false},"labels":[{"id":579126014,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/platform:%20media_player.spotify","name":"platform: media_player.spotify","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-13T17:59:43Z","updated_at":"2017-05-13T17:59:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/7582","html_url":"https://github.com/home-assistant/home-assistant/pull/7582","diff_url":"https://github.com/home-assistant/home-assistant/pull/7582.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/7582.patch"},"body":"## Description:\r\nThe used python library `spotipy version 2.4.4` from https://github.com/happyleavesaoc/spotipy/archive/544614f4b1d508201d363e84e871f86c90aa26b2.zip returns for `spotipy.Spotify(auth=...).devices()` either a python `dict` or `None`. The `None` case was not treated leading to a crash.\r\n\r\n**Related issue (if applicable):** fixes #7384\r\n\r\n## Example entry for `configuration.yaml` (if applicable):\r\n```yaml\r\n   media_player:\r\n    - platform: spotify\r\n      client_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\n      client_secret: XXXXXXXXXXXXXXXXXXXXXXXXX\r\n```\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] Local installation works after bug fix\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/301264123","html_url":"https://github.com/home-assistant/home-assistant/pull/7582#issuecomment-301264123","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7582","id":301264123,"user":{"login":"mention-bot","id":15710697,"avatar_url":"https://avatars2.githubusercontent.com/u/15710697?v=3","gravatar_id":"","url":"https://api.github.com/users/mention-bot","html_url":"https://github.com/mention-bot","followers_url":"https://api.github.com/users/mention-bot/followers","following_url":"https://api.github.com/users/mention-bot/following{/other_user}","gists_url":"https://api.github.com/users/mention-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/mention-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mention-bot/subscriptions","organizations_url":"https://api.github.com/users/mention-bot/orgs","repos_url":"https://api.github.com/users/mention-bot/repos","events_url":"https://api.github.com/users/mention-bot/events{/privacy}","received_events_url":"https://api.github.com/users/mention-bot/received_events","type":"User","site_admin":false},"created_at":"2017-05-13T17:59:44Z","updated_at":"2017-05-13T17:59:44Z","body":"@DavidLP, thanks for your PR! By analyzing the history of the files in this pull request, we identified @happyleavesaoc, @fabaff and @abmantis to be potential reviewers."}}
{"actor":{"display_login":"mention-bot"}}