{"action":"created","comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/124239840","pull_request_review_id":46510049,"id":124239840,"diff_hunk":"@@ -0,0 +1,21 @@\n+from homeassistant.const import MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION\n+from homeassistant.helpers.entity import Entity\n+\n+def setup_platform(hass, config, add_devices, discovery_info=None):\n+\tadd_devices([HAversion()])\n+\n+class HAversion(Entity):\n+\tdef __init__(self):\n+\t\tself._state = None\n+\n+\t@property\n+\tdef name(self):","path":"homeassistant/components/sensor/version.py","position":12,"original_position":12,"commit_id":"953d2889a07cc57bff528f7263030fe0e1af7712","original_commit_id":"953d2889a07cc57bff528f7263030fe0e1af7712","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"indentation contains tabs","created_at":"2017-06-27T10:45:42Z","updated_at":"2017-06-27T10:45:42Z","html_url":"https://github.com/home-assistant/home-assistant/pull/8224#discussion_r124239840","pull_request_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/8224","_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/124239840"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/8224#discussion_r124239840"},"pull_request":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/8224"}}},"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/8224","id":127663786,"html_url":"https://github.com/home-assistant/home-assistant/pull/8224","diff_url":"https://github.com/home-assistant/home-assistant/pull/8224.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/8224.patch","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/8224","number":8224,"state":"open","locked":false,"title":"Added feature showing the version number of hass","user":{"login":"nvanggaard","id":8329634,"avatar_url":"https://avatars3.githubusercontent.com/u/8329634?v=3","gravatar_id":"","url":"https://api.github.com/users/nvanggaard","html_url":"https://github.com/nvanggaard","followers_url":"https://api.github.com/users/nvanggaard/followers","following_url":"https://api.github.com/users/nvanggaard/following{/other_user}","gists_url":"https://api.github.com/users/nvanggaard/gists{/gist_id}","starred_url":"https://api.github.com/users/nvanggaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvanggaard/subscriptions","organizations_url":"https://api.github.com/users/nvanggaard/orgs","repos_url":"https://api.github.com/users/nvanggaard/repos","events_url":"https://api.github.com/users/nvanggaard/events{/privacy}","received_events_url":"https://api.github.com/users/nvanggaard/received_events","type":"User","site_admin":false},"body":"## Description:\r\nA badge showing the version of hass\r\n\r\n**Related issue (if applicable):** fixes #<home-assistant issue number goes here>\r\n\r\n**Pull request in [home-assistant.github.io](https://github.com/home-assistant/home-assistant.github.io) with documentation (if applicable):** home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>\r\n\r\n## Example entry for `configuration.yaml` (if applicable):\r\n```yaml\r\nsensor:\r\n  - platform: version\r\n```\r\n\r\n## Checklist:\r\n\r\nIf user exposed functionality or configuration variables are added/changed:\r\n  - [ ] Documentation added/updated in [home-assistant.github.io](https://github.com/home-assistant/home-assistant.github.io)\r\n\r\nIf the code communicates with devices, web services, or third-party tools:\r\n  - [ ] Local tests with `tox` run successfully. **Your PR cannot be merged unless tests pass**\r\n  - [ ] New dependencies have been added to the `REQUIREMENTS` variable ([example][ex-requir]).\r\n  - [ ] New dependencies are only imported inside functions that use them ([example][ex-import]).\r\n  - [ ] New dependencies have been added to `requirements_all.txt` by running `script/gen_requirements_all.py`.\r\n  - [ ] New files were added to `.coveragerc`.\r\n\r\nIf the code does not interact with devices:\r\n  - [ ] Local tests with `tox` run successfully. **Your PR cannot be merged unless tests pass**\r\n  - [ ] Tests have been added to verify that the new code works.\r\n\r\n[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L14\r\n[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L54\r\n","created_at":"2017-06-27T10:45:33Z","updated_at":"2017-06-27T10:45:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"832aa4f3f0db7ace48eed7d728d85b3fa7a55f0c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/8224/commits","review_comments_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/8224/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/8224/comments","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/953d2889a07cc57bff528f7263030fe0e1af7712","head":{"label":"nvanggaard:showing_version","ref":"showing_version","sha":"953d2889a07cc57bff528f7263030fe0e1af7712","user":{"login":"nvanggaard","id":8329634,"avatar_url":"https://avatars3.githubusercontent.com/u/8329634?v=3","gravatar_id":"","url":"https://api.github.com/users/nvanggaard","html_url":"https://github.com/nvanggaard","followers_url":"https://api.github.com/users/nvanggaard/followers","following_url":"https://api.github.com/users/nvanggaard/following{/other_user}","gists_url":"https://api.github.com/users/nvanggaard/gists{/gist_id}","starred_url":"https://api.github.com/users/nvanggaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvanggaard/subscriptions","organizations_url":"https://api.github.com/users/nvanggaard/orgs","repos_url":"https://api.github.com/users/nvanggaard/repos","events_url":"https://api.github.com/users/nvanggaard/events{/privacy}","received_events_url":"https://api.github.com/users/nvanggaard/received_events","type":"User","site_admin":false},"repo":{"id":95547588,"name":"home-assistant","full_name":"nvanggaard/home-assistant","owner":{"login":"nvanggaard","id":8329634,"avatar_url":"https://avatars3.githubusercontent.com/u/8329634?v=3","gravatar_id":"","url":"https://api.github.com/users/nvanggaard","html_url":"https://github.com/nvanggaard","followers_url":"https://api.github.com/users/nvanggaard/followers","following_url":"https://api.github.com/users/nvanggaard/following{/other_user}","gists_url":"https://api.github.com/users/nvanggaard/gists{/gist_id}","starred_url":"https://api.github.com/users/nvanggaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvanggaard/subscriptions","organizations_url":"https://api.github.com/users/nvanggaard/orgs","repos_url":"https://api.github.com/users/nvanggaard/repos","events_url":"https://api.github.com/users/nvanggaard/events{/privacy}","received_events_url":"https://api.github.com/users/nvanggaard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nvanggaard/home-assistant","description":":house_with_garden: Open-source home automation platform running on Python 3","fork":true,"url":"https://api.github.com/repos/nvanggaard/home-assistant","forks_url":"https://api.github.com/repos/nvanggaard/home-assistant/forks","keys_url":"https://api.github.com/repos/nvanggaard/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nvanggaard/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nvanggaard/home-assistant/teams","hooks_url":"https://api.github.com/repos/nvanggaard/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/nvanggaard/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/nvanggaard/home-assistant/events","assignees_url":"https://api.github.com/repos/nvanggaard/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/nvanggaard/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/nvanggaard/home-assistant/tags","blobs_url":"https://api.github.com/repos/nvanggaard/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nvanggaard/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nvanggaard/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/nvanggaard/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nvanggaard/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/nvanggaard/home-assistant/languages","stargazers_url":"https://api.github.com/repos/nvanggaard/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/nvanggaard/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/nvanggaard/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/nvanggaard/home-assistant/subscription","commits_url":"https://api.github.com/repos/nvanggaard/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/nvanggaard/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/nvanggaard/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/nvanggaard/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/nvanggaard/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/nvanggaard/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nvanggaard/home-assistant/merges","archive_url":"https://api.github.com/repos/nvanggaard/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nvanggaard/home-assistant/downloads","issues_url":"https://api.github.com/repos/nvanggaard/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/nvanggaard/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/nvanggaard/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/nvanggaard/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nvanggaard/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/nvanggaard/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/nvanggaard/home-assistant/deployments","created_at":"2017-06-27T10:39:05Z","updated_at":"2017-06-27T10:39:12Z","pushed_at":"2017-06-27T10:43:19Z","git_url":"git://github.com/nvanggaard/home-assistant.git","ssh_url":"git@github.com:nvanggaard/home-assistant.git","clone_url":"https://github.com/nvanggaard/home-assistant.git","svn_url":"https://github.com/nvanggaard/home-assistant","homepage":"https://home-assistant.io","size":65114,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"home-assistant:dev","ref":"dev","sha":"fa6e93f0c7e78a3f83bf48ed12f8902dba90c5a0","user":{"login":"home-assistant","id":13844975,"avatar_url":"https://avatars0.githubusercontent.com/u/13844975?v=3","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,"name":"home-assistant","full_name":"home-assistant/home-assistant","owner":{"login":"home-assistant","id":13844975,"avatar_url":"https://avatars0.githubusercontent.com/u/13844975?v=3","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},"private":false,"html_url":"https://github.com/home-assistant/home-assistant","description":":house_with_garden: Open-source home automation platform running on Python 3","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":"2017-06-27T09:24:52Z","pushed_at":"2017-06-27T10:45:33Z","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://home-assistant.io","size":65114,"stargazers_count":7199,"watchers_count":7199,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2170,"mirror_url":null,"open_issues_count":427,"forks":2170,"open_issues":427,"watchers":7199,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/8224"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/8224"},"issue":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/8224"},"comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/8224/comments"},"review_comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/8224/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/8224/commits"},"statuses":{"href":"https://api.github.com/repos/home-assistant/home-assistant/statuses/953d2889a07cc57bff528f7263030fe0e1af7712"}}}}
{"actor":{"display_login":"houndci-bot"}}