{"action":"created","comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/330873792","pull_request_review_id":296655348,"id":330873792,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzMDg3Mzc5Mg==","diff_hunk":"@@ -93,8 +94,13 @@ def available(self):\n         def do_update(_):","path":"homeassistant/components/cert_expiry/sensor.py","position":20,"original_position":18,"commit_id":"febb415828db67347c3decfcae4c188d7719e231","original_commit_id":"febb415828db67347c3decfcae4c188d7719e231","user":{"login":"MartinHjelmare","id":3181692,"node_id":"MDQ6VXNlcjMxODE2OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/3181692?v=4","gravatar_id":"","url":"https://api.github.com/users/MartinHjelmare","html_url":"https://github.com/MartinHjelmare","followers_url":"https://api.github.com/users/MartinHjelmare/followers","following_url":"https://api.github.com/users/MartinHjelmare/following{/other_user}","gists_url":"https://api.github.com/users/MartinHjelmare/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinHjelmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinHjelmare/subscriptions","organizations_url":"https://api.github.com/users/MartinHjelmare/orgs","repos_url":"https://api.github.com/users/MartinHjelmare/repos","events_url":"https://api.github.com/users/MartinHjelmare/events{/privacy}","received_events_url":"https://api.github.com/users/MartinHjelmare/received_events","type":"User","site_admin":false},"body":"Decorate this with `@callback`.","created_at":"2019-10-03T06:00:30Z","updated_at":"2019-10-03T06:05:05Z","html_url":"https://github.com/home-assistant/home-assistant/pull/27137#discussion_r330873792","pull_request_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/27137","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/330873792"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/27137#discussion_r330873792"},"pull_request":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/27137"}}},"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/27137","id":324004129,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI0MDA0MTI5","html_url":"https://github.com/home-assistant/home-assistant/pull/27137","diff_url":"https://github.com/home-assistant/home-assistant/pull/27137.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/27137.patch","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/27137","number":27137,"state":"open","locked":false,"title":"Don't force redundant update on cert_expiry startup","user":{"login":"jjlawren","id":1203111,"node_id":"MDQ6VXNlcjEyMDMxMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1203111?v=4","gravatar_id":"","url":"https://api.github.com/users/jjlawren","html_url":"https://github.com/jjlawren","followers_url":"https://api.github.com/users/jjlawren/followers","following_url":"https://api.github.com/users/jjlawren/following{/other_user}","gists_url":"https://api.github.com/users/jjlawren/gists{/gist_id}","starred_url":"https://api.github.com/users/jjlawren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjlawren/subscriptions","organizations_url":"https://api.github.com/users/jjlawren/orgs","repos_url":"https://api.github.com/users/jjlawren/repos","events_url":"https://api.github.com/users/jjlawren/events{/privacy}","received_events_url":"https://api.github.com/users/jjlawren/received_events","type":"User","site_admin":false},"body":"## Description:\r\nCert Expiry sensors are updated when the entities are created, but also a redundant call when HA finishes starting up. This removes the latter update as it was unnecessary and potentially causes issues.\r\n\r\n**Related issue (if applicable):** may fix #26740 \r\n\r\n## Checklist:\r\n  - [x] The code change is tested and works locally.\r\n  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**\r\n  - [x] There is no commented out code in this PR.\r\n  - [x] I have followed the [development checklist][dev-checklist]\r\n\r\n[dev-checklist]: https://developers.home-assistant.io/docs/en/development_checklist.html\r\n[manifest-docs]: https://developers.home-assistant.io/docs/en/creating_integration_manifest.html\r\n","created_at":"2019-10-03T01:10:23Z","updated_at":"2019-10-03T06:05:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46cb135b1c6552d5ba4a9ed3680a394937c9023e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":527871105,"node_id":"MDU6TGFiZWw1Mjc4NzExMDU=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/cla-signed","name":"cla-signed","color":"008000","default":false},{"id":1282869386,"node_id":"MDU6TGFiZWwxMjgyODY5Mzg2","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/integration:%20cert_expiry","name":"integration: cert_expiry","color":"ededed","default":false},{"id":832964196,"node_id":"MDU6TGFiZWw4MzI5NjQxOTY=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/small-pr","name":"small-pr","color":"e5bd7e","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/27137/commits","review_comments_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/27137/comments","review_comment_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/27137/comments","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/febb415828db67347c3decfcae4c188d7719e231","head":{"label":"jjlawren:cert_update_once","ref":"cert_update_once","sha":"febb415828db67347c3decfcae4c188d7719e231","user":{"login":"jjlawren","id":1203111,"node_id":"MDQ6VXNlcjEyMDMxMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1203111?v=4","gravatar_id":"","url":"https://api.github.com/users/jjlawren","html_url":"https://github.com/jjlawren","followers_url":"https://api.github.com/users/jjlawren/followers","following_url":"https://api.github.com/users/jjlawren/following{/other_user}","gists_url":"https://api.github.com/users/jjlawren/gists{/gist_id}","starred_url":"https://api.github.com/users/jjlawren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjlawren/subscriptions","organizations_url":"https://api.github.com/users/jjlawren/orgs","repos_url":"https://api.github.com/users/jjlawren/repos","events_url":"https://api.github.com/users/jjlawren/events{/privacy}","received_events_url":"https://api.github.com/users/jjlawren/received_events","type":"User","site_admin":false},"repo":{"id":153714571,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM3MTQ1NzE=","name":"home-assistant","full_name":"jjlawren/home-assistant","private":false,"owner":{"login":"jjlawren","id":1203111,"node_id":"MDQ6VXNlcjEyMDMxMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1203111?v=4","gravatar_id":"","url":"https://api.github.com/users/jjlawren","html_url":"https://github.com/jjlawren","followers_url":"https://api.github.com/users/jjlawren/followers","following_url":"https://api.github.com/users/jjlawren/following{/other_user}","gists_url":"https://api.github.com/users/jjlawren/gists{/gist_id}","starred_url":"https://api.github.com/users/jjlawren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjlawren/subscriptions","organizations_url":"https://api.github.com/users/jjlawren/orgs","repos_url":"https://api.github.com/users/jjlawren/repos","events_url":"https://api.github.com/users/jjlawren/events{/privacy}","received_events_url":"https://api.github.com/users/jjlawren/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jjlawren/home-assistant","description":":house_with_garden: Open source home automation that puts local control and privacy first","fork":true,"url":"https://api.github.com/repos/jjlawren/home-assistant","forks_url":"https://api.github.com/repos/jjlawren/home-assistant/forks","keys_url":"https://api.github.com/repos/jjlawren/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jjlawren/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jjlawren/home-assistant/teams","hooks_url":"https://api.github.com/repos/jjlawren/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/jjlawren/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/jjlawren/home-assistant/events","assignees_url":"https://api.github.com/repos/jjlawren/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/jjlawren/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/jjlawren/home-assistant/tags","blobs_url":"https://api.github.com/repos/jjlawren/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jjlawren/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jjlawren/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/jjlawren/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jjlawren/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/jjlawren/home-assistant/languages","stargazers_url":"https://api.github.com/repos/jjlawren/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/jjlawren/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/jjlawren/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/jjlawren/home-assistant/subscription","commits_url":"https://api.github.com/repos/jjlawren/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/jjlawren/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/jjlawren/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/jjlawren/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/jjlawren/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/jjlawren/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jjlawren/home-assistant/merges","archive_url":"https://api.github.com/repos/jjlawren/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jjlawren/home-assistant/downloads","issues_url":"https://api.github.com/repos/jjlawren/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/jjlawren/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/jjlawren/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/jjlawren/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jjlawren/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/jjlawren/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/jjlawren/home-assistant/deployments","created_at":"2018-10-19T02:20:40Z","updated_at":"2019-10-03T01:01:36Z","pushed_at":"2019-10-03T04:52:00Z","git_url":"git://github.com/jjlawren/home-assistant.git","ssh_url":"git@github.com:jjlawren/home-assistant.git","clone_url":"https://github.com/jjlawren/home-assistant.git","svn_url":"https://github.com/jjlawren/home-assistant","homepage":"https://www.home-assistant.io","size":124681,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"home-assistant:dev","ref":"dev","sha":"e005f6f23a3ff9ff052afd317891da206ea618e0","user":{"login":"home-assistant","id":13844975,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzODQ0OTc1","avatar_url":"https://avatars3.githubusercontent.com/u/13844975?v=4","gravatar_id":"","url":"https://api.github.com/users/home-assistant","html_url":"https://github.com/home-assistant","followers_url":"https://api.github.com/users/home-assistant/followers","following_url":"https://api.github.com/users/home-assistant/following{/other_user}","gists_url":"https://api.github.com/users/home-assistant/gists{/gist_id}","starred_url":"https://api.github.com/users/home-assistant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/home-assistant/subscriptions","organizations_url":"https://api.github.com/users/home-assistant/orgs","repos_url":"https://api.github.com/users/home-assistant/repos","events_url":"https://api.github.com/users/home-assistant/events{/privacy}","received_events_url":"https://api.github.com/users/home-assistant/received_events","type":"Organization","site_admin":false},"repo":{"id":12888993,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg4ODk5Mw==","name":"home-assistant","full_name":"home-assistant/home-assistant","private":false,"owner":{"login":"home-assistant","id":13844975,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzODQ0OTc1","avatar_url":"https://avatars3.githubusercontent.com/u/13844975?v=4","gravatar_id":"","url":"https://api.github.com/users/home-assistant","html_url":"https://github.com/home-assistant","followers_url":"https://api.github.com/users/home-assistant/followers","following_url":"https://api.github.com/users/home-assistant/following{/other_user}","gists_url":"https://api.github.com/users/home-assistant/gists{/gist_id}","starred_url":"https://api.github.com/users/home-assistant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/home-assistant/subscriptions","organizations_url":"https://api.github.com/users/home-assistant/orgs","repos_url":"https://api.github.com/users/home-assistant/repos","events_url":"https://api.github.com/users/home-assistant/events{/privacy}","received_events_url":"https://api.github.com/users/home-assistant/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/home-assistant/home-assistant","description":":house_with_garden: Open source home automation that puts local control and privacy first","fork":false,"url":"https://api.github.com/repos/home-assistant/home-assistant","forks_url":"https://api.github.com/repos/home-assistant/home-assistant/forks","keys_url":"https://api.github.com/repos/home-assistant/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/home-assistant/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/home-assistant/home-assistant/teams","hooks_url":"https://api.github.com/repos/home-assistant/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/home-assistant/home-assistant/events","assignees_url":"https://api.github.com/repos/home-assistant/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/home-assistant/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/home-assistant/home-assistant/tags","blobs_url":"https://api.github.com/repos/home-assistant/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/home-assistant/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/home-assistant/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/home-assistant/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/home-assistant/home-assistant/languages","stargazers_url":"https://api.github.com/repos/home-assistant/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/home-assistant/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/home-assistant/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/home-assistant/home-assistant/subscription","commits_url":"https://api.github.com/repos/home-assistant/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/home-assistant/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/home-assistant/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/home-assistant/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/home-assistant/home-assistant/merges","archive_url":"https://api.github.com/repos/home-assistant/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/home-assistant/home-assistant/downloads","issues_url":"https://api.github.com/repos/home-assistant/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/home-assistant/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/home-assistant/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/home-assistant/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/home-assistant/home-assistant/deployments","created_at":"2013-09-17T07:29:48Z","updated_at":"2019-10-03T05:47:22Z","pushed_at":"2019-10-03T05:26:39Z","git_url":"git://github.com/home-assistant/home-assistant.git","ssh_url":"git@github.com:home-assistant/home-assistant.git","clone_url":"https://github.com/home-assistant/home-assistant.git","svn_url":"https://github.com/home-assistant/home-assistant","homepage":"https://www.home-assistant.io","size":124484,"stargazers_count":26796,"watchers_count":26796,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7879,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":943,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":7879,"open_issues":943,"watchers":26796,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/27137"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/27137"},"issue":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/27137"},"comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/27137/comments"},"review_comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/27137/comments"},"review_comment":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/27137/commits"},"statuses":{"href":"https://api.github.com/repos/home-assistant/home-assistant/statuses/febb415828db67347c3decfcae4c188d7719e231"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"MartinHjelmare"}}