{"action":"created","issue":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/595","labels_url":"https://api.github.com/repos/balloob/home-assistant/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/balloob/home-assistant/issues/595/comments","events_url":"https://api.github.com/repos/balloob/home-assistant/issues/595/events","html_url":"https://github.com/balloob/home-assistant/pull/595","id":115699973,"number":595,"title":"Expose version through API","user":{"login":"fabaff","id":116184,"avatar_url":"https://avatars.githubusercontent.com/u/116184?v=3","gravatar_id":"","url":"https://api.github.com/users/fabaff","html_url":"https://github.com/fabaff","followers_url":"https://api.github.com/users/fabaff/followers","following_url":"https://api.github.com/users/fabaff/following{/other_user}","gists_url":"https://api.github.com/users/fabaff/gists{/gist_id}","starred_url":"https://api.github.com/users/fabaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabaff/subscriptions","organizations_url":"https://api.github.com/users/fabaff/orgs","repos_url":"https://api.github.com/users/fabaff/repos","events_url":"https://api.github.com/users/fabaff/events{/privacy}","received_events_url":"https://api.github.com/users/fabaff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-07T23:36:46Z","updated_at":"2015-11-13T06:51:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/balloob/home-assistant/pulls/595","html_url":"https://github.com/balloob/home-assistant/pull/595","diff_url":"https://github.com/balloob/home-assistant/pull/595.diff","patch_url":"https://github.com/balloob/home-assistant/pull/595.patch"},"body":"This Pull request add the Home Assistant version to the Python and the REST API.\r\n\r\nUnfortunately this will not fix #510 but let one use a [command_sensor](https://home-assistant.io/components/sensor.command_sensor/) with something like the script below:\r\n\r\n```python\r\nimport homeassistant.remote as remote\r\napi = remote.API('host', 'password')\r\nprint(remote.get_version(api)['version'])\r\n```"},"comment":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/comments/156342184","html_url":"https://github.com/balloob/home-assistant/pull/595#issuecomment-156342184","issue_url":"https://api.github.com/repos/balloob/home-assistant/issues/595","id":156342184,"user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T06:51:03Z","updated_at":"2015-11-13T06:51:03Z","body":"If there is no standardized way to do this, I suggest we don't merge it until there is a need for it. It is always easier to add things to a project then to take it out, because you don't know who is using it. Every change, even minor ones, might become a burden in a future refactor."}}