{"action":"reopened","number":5,"pull_request":{"url":"https://api.github.com/repos/djbulsink/panasonic_ac/pulls/5","id":274098206,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc0MDk4MjA2","html_url":"https://github.com/djbulsink/panasonic_ac/pull/5","diff_url":"https://github.com/djbulsink/panasonic_ac/pull/5.diff","patch_url":"https://github.com/djbulsink/panasonic_ac/pull/5.patch","issue_url":"https://api.github.com/repos/djbulsink/panasonic_ac/issues/5","number":5,"state":"open","locked":false,"title":"Makes component discoverable","user":{"login":"SeraphimSerapis","id":160543,"node_id":"MDQ6VXNlcjE2MDU0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/160543?v=4","gravatar_id":"","url":"https://api.github.com/users/SeraphimSerapis","html_url":"https://github.com/SeraphimSerapis","followers_url":"https://api.github.com/users/SeraphimSerapis/followers","following_url":"https://api.github.com/users/SeraphimSerapis/following{/other_user}","gists_url":"https://api.github.com/users/SeraphimSerapis/gists{/gist_id}","starred_url":"https://api.github.com/users/SeraphimSerapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeraphimSerapis/subscriptions","organizations_url":"https://api.github.com/users/SeraphimSerapis/orgs","repos_url":"https://api.github.com/users/SeraphimSerapis/repos","events_url":"https://api.github.com/users/SeraphimSerapis/events{/privacy}","received_events_url":"https://api.github.com/users/SeraphimSerapis/received_events","type":"User","site_admin":false},"body":"**Description:**\r\nWhile [validating my Home Assistant configuration](https://www.home-assistant.io/docs/configuration/troubleshooting/#my-component-does-not-show-up), I noticed that the custom component was not discoverable. This threw an error and causes the configuration validation (`hass --script check_config`) to fail: `Platform not found: climate.panasonic_ac`.\r\n\r\n**What I changed:**\r\nIt seems like `add_entities(ENTITY, True)` should be used instead of `add_devices(ENTITY)`. As far as I understand, the boolean value _announces_ the component to Home Assistant.\r\n\r\nIn addition to that, I did some refactoring to comply with the [changes in 0.92](https://developers.home-assistant.io/blog/2019/04/12/new-integration-structure.html).\r\n","created_at":"2019-04-27T10:37:46Z","updated_at":"2019-04-27T19:54:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37b7c31bdaa68d629cd89d2f4ae007c5c37c474f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/djbulsink/panasonic_ac/pulls/5/commits","review_comments_url":"https://api.github.com/repos/djbulsink/panasonic_ac/pulls/5/comments","review_comment_url":"https://api.github.com/repos/djbulsink/panasonic_ac/pulls/comments{/number}","comments_url":"https://api.github.com/repos/djbulsink/panasonic_ac/issues/5/comments","statuses_url":"https://api.github.com/repos/djbulsink/panasonic_ac/statuses/7bae548754e60f64f1c6579512e1fe05a0599213","head":{"label":"SeraphimSerapis:master","ref":"master","sha":"7bae548754e60f64f1c6579512e1fe05a0599213","user":{"login":"SeraphimSerapis","id":160543,"node_id":"MDQ6VXNlcjE2MDU0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/160543?v=4","gravatar_id":"","url":"https://api.github.com/users/SeraphimSerapis","html_url":"https://github.com/SeraphimSerapis","followers_url":"https://api.github.com/users/SeraphimSerapis/followers","following_url":"https://api.github.com/users/SeraphimSerapis/following{/other_user}","gists_url":"https://api.github.com/users/SeraphimSerapis/gists{/gist_id}","starred_url":"https://api.github.com/users/SeraphimSerapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeraphimSerapis/subscriptions","organizations_url":"https://api.github.com/users/SeraphimSerapis/orgs","repos_url":"https://api.github.com/users/SeraphimSerapis/repos","events_url":"https://api.github.com/users/SeraphimSerapis/events{/privacy}","received_events_url":"https://api.github.com/users/SeraphimSerapis/received_events","type":"User","site_admin":false},"repo":{"id":181107670,"node_id":"MDEwOlJlcG9zaXRvcnkxODExMDc2NzA=","name":"panasonic_ac","full_name":"SeraphimSerapis/panasonic_ac","private":false,"owner":{"login":"SeraphimSerapis","id":160543,"node_id":"MDQ6VXNlcjE2MDU0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/160543?v=4","gravatar_id":"","url":"https://api.github.com/users/SeraphimSerapis","html_url":"https://github.com/SeraphimSerapis","followers_url":"https://api.github.com/users/SeraphimSerapis/followers","following_url":"https://api.github.com/users/SeraphimSerapis/following{/other_user}","gists_url":"https://api.github.com/users/SeraphimSerapis/gists{/gist_id}","starred_url":"https://api.github.com/users/SeraphimSerapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeraphimSerapis/subscriptions","organizations_url":"https://api.github.com/users/SeraphimSerapis/orgs","repos_url":"https://api.github.com/users/SeraphimSerapis/repos","events_url":"https://api.github.com/users/SeraphimSerapis/events{/privacy}","received_events_url":"https://api.github.com/users/SeraphimSerapis/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SeraphimSerapis/panasonic_ac","description":"Panasonic Comfort Cloud HA component","fork":true,"url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac","forks_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/forks","keys_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/teams","hooks_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/hooks","issue_events_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/issues/events{/number}","events_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/events","assignees_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/assignees{/user}","branches_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/branches{/branch}","tags_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/tags","blobs_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/git/refs{/sha}","trees_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/statuses/{sha}","languages_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/languages","stargazers_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/stargazers","contributors_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/contributors","subscribers_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/subscribers","subscription_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/subscription","commits_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/commits{/sha}","git_commits_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/git/commits{/sha}","comments_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/comments{/number}","issue_comment_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/issues/comments{/number}","contents_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/contents/{+path}","compare_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/merges","archive_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/downloads","issues_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/issues{/number}","pulls_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/pulls{/number}","milestones_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/milestones{/number}","notifications_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/labels{/name}","releases_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/releases{/id}","deployments_url":"https://api.github.com/repos/SeraphimSerapis/panasonic_ac/deployments","created_at":"2019-04-13T01:54:12Z","updated_at":"2019-04-27T10:28:14Z","pushed_at":"2019-04-27T10:28:12Z","git_url":"git://github.com/SeraphimSerapis/panasonic_ac.git","ssh_url":"git@github.com:SeraphimSerapis/panasonic_ac.git","clone_url":"https://github.com/SeraphimSerapis/panasonic_ac.git","svn_url":"https://github.com/SeraphimSerapis/panasonic_ac","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"djbulsink:master","ref":"master","sha":"6027385e4bd5f919cf8d8af4e2cfd66e8a714b07","user":{"login":"djbulsink","id":22632111,"node_id":"MDQ6VXNlcjIyNjMyMTEx","avatar_url":"https://avatars0.githubusercontent.com/u/22632111?v=4","gravatar_id":"","url":"https://api.github.com/users/djbulsink","html_url":"https://github.com/djbulsink","followers_url":"https://api.github.com/users/djbulsink/followers","following_url":"https://api.github.com/users/djbulsink/following{/other_user}","gists_url":"https://api.github.com/users/djbulsink/gists{/gist_id}","starred_url":"https://api.github.com/users/djbulsink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djbulsink/subscriptions","organizations_url":"https://api.github.com/users/djbulsink/orgs","repos_url":"https://api.github.com/users/djbulsink/repos","events_url":"https://api.github.com/users/djbulsink/events{/privacy}","received_events_url":"https://api.github.com/users/djbulsink/received_events","type":"User","site_admin":false},"repo":{"id":163322610,"node_id":"MDEwOlJlcG9zaXRvcnkxNjMzMjI2MTA=","name":"panasonic_ac","full_name":"djbulsink/panasonic_ac","private":false,"owner":{"login":"djbulsink","id":22632111,"node_id":"MDQ6VXNlcjIyNjMyMTEx","avatar_url":"https://avatars0.githubusercontent.com/u/22632111?v=4","gravatar_id":"","url":"https://api.github.com/users/djbulsink","html_url":"https://github.com/djbulsink","followers_url":"https://api.github.com/users/djbulsink/followers","following_url":"https://api.github.com/users/djbulsink/following{/other_user}","gists_url":"https://api.github.com/users/djbulsink/gists{/gist_id}","starred_url":"https://api.github.com/users/djbulsink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djbulsink/subscriptions","organizations_url":"https://api.github.com/users/djbulsink/orgs","repos_url":"https://api.github.com/users/djbulsink/repos","events_url":"https://api.github.com/users/djbulsink/events{/privacy}","received_events_url":"https://api.github.com/users/djbulsink/received_events","type":"User","site_admin":false},"html_url":"https://github.com/djbulsink/panasonic_ac","description":"Panasonic Comfort Cloud HA component","fork":false,"url":"https://api.github.com/repos/djbulsink/panasonic_ac","forks_url":"https://api.github.com/repos/djbulsink/panasonic_ac/forks","keys_url":"https://api.github.com/repos/djbulsink/panasonic_ac/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djbulsink/panasonic_ac/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djbulsink/panasonic_ac/teams","hooks_url":"https://api.github.com/repos/djbulsink/panasonic_ac/hooks","issue_events_url":"https://api.github.com/repos/djbulsink/panasonic_ac/issues/events{/number}","events_url":"https://api.github.com/repos/djbulsink/panasonic_ac/events","assignees_url":"https://api.github.com/repos/djbulsink/panasonic_ac/assignees{/user}","branches_url":"https://api.github.com/repos/djbulsink/panasonic_ac/branches{/branch}","tags_url":"https://api.github.com/repos/djbulsink/panasonic_ac/tags","blobs_url":"https://api.github.com/repos/djbulsink/panasonic_ac/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djbulsink/panasonic_ac/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djbulsink/panasonic_ac/git/refs{/sha}","trees_url":"https://api.github.com/repos/djbulsink/panasonic_ac/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djbulsink/panasonic_ac/statuses/{sha}","languages_url":"https://api.github.com/repos/djbulsink/panasonic_ac/languages","stargazers_url":"https://api.github.com/repos/djbulsink/panasonic_ac/stargazers","contributors_url":"https://api.github.com/repos/djbulsink/panasonic_ac/contributors","subscribers_url":"https://api.github.com/repos/djbulsink/panasonic_ac/subscribers","subscription_url":"https://api.github.com/repos/djbulsink/panasonic_ac/subscription","commits_url":"https://api.github.com/repos/djbulsink/panasonic_ac/commits{/sha}","git_commits_url":"https://api.github.com/repos/djbulsink/panasonic_ac/git/commits{/sha}","comments_url":"https://api.github.com/repos/djbulsink/panasonic_ac/comments{/number}","issue_comment_url":"https://api.github.com/repos/djbulsink/panasonic_ac/issues/comments{/number}","contents_url":"https://api.github.com/repos/djbulsink/panasonic_ac/contents/{+path}","compare_url":"https://api.github.com/repos/djbulsink/panasonic_ac/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djbulsink/panasonic_ac/merges","archive_url":"https://api.github.com/repos/djbulsink/panasonic_ac/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djbulsink/panasonic_ac/downloads","issues_url":"https://api.github.com/repos/djbulsink/panasonic_ac/issues{/number}","pulls_url":"https://api.github.com/repos/djbulsink/panasonic_ac/pulls{/number}","milestones_url":"https://api.github.com/repos/djbulsink/panasonic_ac/milestones{/number}","notifications_url":"https://api.github.com/repos/djbulsink/panasonic_ac/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djbulsink/panasonic_ac/labels{/name}","releases_url":"https://api.github.com/repos/djbulsink/panasonic_ac/releases{/id}","deployments_url":"https://api.github.com/repos/djbulsink/panasonic_ac/deployments","created_at":"2018-12-27T17:55:59Z","updated_at":"2019-04-25T10:40:08Z","pushed_at":"2019-04-27T10:37:46Z","git_url":"git://github.com/djbulsink/panasonic_ac.git","ssh_url":"git@github.com:djbulsink/panasonic_ac.git","clone_url":"https://github.com/djbulsink/panasonic_ac.git","svn_url":"https://github.com/djbulsink/panasonic_ac","homepage":null,"size":19,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/djbulsink/panasonic_ac/pulls/5"},"html":{"href":"https://github.com/djbulsink/panasonic_ac/pull/5"},"issue":{"href":"https://api.github.com/repos/djbulsink/panasonic_ac/issues/5"},"comments":{"href":"https://api.github.com/repos/djbulsink/panasonic_ac/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/djbulsink/panasonic_ac/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/djbulsink/panasonic_ac/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/djbulsink/panasonic_ac/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/djbulsink/panasonic_ac/statuses/7bae548754e60f64f1c6579512e1fe05a0599213"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":9,"deletions":7,"changed_files":1}}
{"actor":{"display_login":"SeraphimSerapis"}}