{"action":"created","comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/168970471","pull_request_review_id":97421261,"id":168970471,"diff_hunk":"@@ -0,0 +1,122 @@\n+\"\"\"Support for Apple Homekit.\n+\n+For more details about this platform, please refer to the documentation at\n+https://home-assistant.io/components/homekit/\n+\"\"\"\n+import asyncio\n+import logging\n+\n+import voluptuous as vol\n+\n+import homeassistant.helpers.config_validation as cv\n+from homeassistant.const import (\n+    ATTR_SUPPORTED_FEATURES, ATTR_UNIT_OF_MEASUREMENT, CONF_PORT, TEMP_CELSIUS,\n+    EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP)\n+from homeassistant.util import get_local_ip\n+from homeassistant.util.decorator import Registry\n+\n+TYPES = Registry()\n+_LOGGER = logging.getLogger(__name__)\n+\n+DOMAIN = 'homekit'\n+REQUIREMENTS = ['HAP-python==1.1.5']\n+\n+BRIDGE_NAME = 'Home Assistant'\n+CONF_PIN_CODE = 'pincode'\n+\n+HOMEKIT_FILE = '.homekit.state'\n+\n+CONFIG_SCHEMA = vol.Schema({\n+    DOMAIN: vol.All({\n+        vol.Optional(CONF_PORT, default=51826): vol.Coerce(int),\n+        vol.Optional(CONF_PIN_CODE, default='123-45-678'): cv.string,\n+    })\n+}, extra=vol.ALLOW_EXTRA)\n+\n+\n+@asyncio.coroutine\n+def async_setup(hass, config):\n+    \"\"\"Setup the homekit component.\"\"\"\n+    # pylint: disable=unused-variable\n+    from .covers import Window  # noqa F401\n+    # pylint: disable=unused-variable\n+    from .sensors import TemperatureSensor # noqa F401\n+    _LOGGER.debug(\"Begin setup homekit\")\n+\n+    conf = config[DOMAIN]\n+    port = conf.get(CONF_PORT)\n+    pin = str.encode(conf.get(CONF_PIN_CODE))\n+\n+    homekit = Homekit(hass, port)\n+    homekit.setup_bridge(pin)\n+\n+    hass.bus.async_listen_once(\n+        EVENT_HOMEASSISTANT_START, homekit.start_driver)\n+    return True\n+\n+\n+def get_accessory(hass, state):\n+    \"\"\"Take state and return an accessory object if supported.\"\"\"\n+    if state.domain == 'sensor':\n+        if state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == TEMP_CELSIUS:\n+            _LOGGER.debug(\"Add \\\"%s\\\" as \\\"%s\\\"\",\n+                          state.entity_id, 'TemperatureSensor')\n+            return TYPES['TemperatureSensor'](hass, state.entity_id,\n+                                              state.name)\n+\n+    elif state.domain == 'cover':\n+        # Only add covers that support set_cover_position\n+        if state.attributes.get(ATTR_SUPPORTED_FEATURES) & 4:\n+            _LOGGER.debug(\"Add \\\"%s\\\" as \\\"%s\\\"\",\n+                          state.entity_id, 'Window')\n+            return TYPES['Window'](hass, state.entity_id, state.name)\n+\n+    return None\n+\n+\n+class Homekit():\n+    \"\"\"Class to handle all actions between homekit and Home Assistant.\"\"\"\n+\n+    def __init__(self, hass, port):\n+        \"\"\"Initialize a homekit object.\"\"\"\n+        self._hass = hass\n+        self._port = port\n+        self.bridge = None\n+        self.driver = None\n+\n+    def setup_bridge(self, pin):\n+        \"\"\"Setup the bridge component to track all accessories.\"\"\"\n+        from .accessories import HomeBridge\n+        self.bridge = HomeBridge(BRIDGE_NAME, pincode=pin)\n+        self.bridge.set_accessory_info('homekit.bridge')\n+\n+    def add_accessory(self, acc):\n+        \"\"\"Add an accessory to the bridge.\"\"\"\n+        self.bridge.add_accessory(acc)\n+\n+    def start_driver(self, event):\n+        \"\"\"Start the accessory driver.\"\"\"\n+        from pyhap.accessory_driver import AccessoryDriver\n+        _LOGGER.debug('Start driver')\n+        self._hass.bus.async_listen_once(\n+            EVENT_HOMEASSISTANT_STOP, self.stop_driver)\n+\n+        _LOGGER.debug('Start adding accessories.')\n+        for state in self._hass.states.async_all():","path":"homeassistant/components/homekit/__init__.py","position":105,"original_position":105,"commit_id":"aa10168b44f2c773eed00211d2a650434a328311","original_commit_id":"aa10168b44f2c773eed00211d2a650434a328311","user":{"login":"MartinHjelmare","id":3181692,"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":"Sync context.","created_at":"2018-02-18T23:28:15Z","updated_at":"2018-02-18T23:33:33Z","html_url":"https://github.com/home-assistant/home-assistant/pull/12488#discussion_r168970471","pull_request_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/12488","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/168970471"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/12488#discussion_r168970471"},"pull_request":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/12488"}}},"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/12488","id":169808499,"html_url":"https://github.com/home-assistant/home-assistant/pull/12488","diff_url":"https://github.com/home-assistant/home-assistant/pull/12488.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/12488.patch","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/12488","number":12488,"state":"open","locked":false,"title":"RFC: New Homekit component","user":{"login":"cdce8p","id":30130371,"avatar_url":"https://avatars2.githubusercontent.com/u/30130371?v=4","gravatar_id":"","url":"https://api.github.com/users/cdce8p","html_url":"https://github.com/cdce8p","followers_url":"https://api.github.com/users/cdce8p/followers","following_url":"https://api.github.com/users/cdce8p/following{/other_user}","gists_url":"https://api.github.com/users/cdce8p/gists{/gist_id}","starred_url":"https://api.github.com/users/cdce8p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdce8p/subscriptions","organizations_url":"https://api.github.com/users/cdce8p/orgs","repos_url":"https://api.github.com/users/cdce8p/repos","events_url":"https://api.github.com/users/cdce8p/events{/privacy}","received_events_url":"https://api.github.com/users/cdce8p/received_events","type":"User","site_admin":false},"body":"## Description:\r\nAfter reading about [HAP-Python](https://github.com/ikalchev/HAP-python) in the [forum](https://community.home-assistant.io/t/native-homekit-integration/42934), I tried a few things and ended up with this. It should add the bare bone support for homekit to Home Assistant and is quite easy expendable. For now I just added support for two components: `temperature sensors` and `covers (with set_position support)`.\r\n\r\nTested with: `HAP-python==1.1.2`\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\nhomekit:\r\n\r\ncover:\r\n  - platform: demo\r\nsensor:\r\n  - platform: yr\r\n    monitored_conditions:\r\n      - temperature\r\n```\r\n\r\n## Checklist:\r\n  - [x] The code change is tested and works locally.\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  - [x] New dependencies have been added to the `REQUIREMENTS` variable ([example][ex-requir]).\r\n  - [x] New dependencies are only imported inside functions that use them ([example][ex-import]).\r\n  - [x] 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\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","created_at":"2018-02-18T00:26:56Z","updated_at":"2018-02-18T23:33:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82465a4964fb6775ea28a90fe78d310cf12dd2e7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"andrey-git","id":5478779,"avatar_url":"https://avatars0.githubusercontent.com/u/5478779?v=4","gravatar_id":"","url":"https://api.github.com/users/andrey-git","html_url":"https://github.com/andrey-git","followers_url":"https://api.github.com/users/andrey-git/followers","following_url":"https://api.github.com/users/andrey-git/following{/other_user}","gists_url":"https://api.github.com/users/andrey-git/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey-git/subscriptions","organizations_url":"https://api.github.com/users/andrey-git/orgs","repos_url":"https://api.github.com/users/andrey-git/repos","events_url":"https://api.github.com/users/andrey-git/events{/privacy}","received_events_url":"https://api.github.com/users/andrey-git/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":527871105,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/cla-signed","name":"cla-signed","color":"008000","default":false},{"id":840363345,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/component:%20homekit","name":"component: homekit","color":"ededed","default":false},{"id":526146744,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/new-platform","name":"new-platform","color":"ededed","default":false},{"id":840363346,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/platform:%20homekit.accessories","name":"platform: homekit.accessories","color":"ededed","default":false},{"id":840363347,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/platform:%20homekit.const","name":"platform: homekit.const","color":"ededed","default":false},{"id":840363348,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/platform:%20homekit.covers","name":"platform: homekit.covers","color":"ededed","default":false},{"id":840363349,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/platform:%20homekit.sensors","name":"platform: homekit.sensors","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/12488/commits","review_comments_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/12488/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/12488/comments","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/aa10168b44f2c773eed00211d2a650434a328311","head":{"label":"cdce8p:homekit","ref":"homekit","sha":"aa10168b44f2c773eed00211d2a650434a328311","user":{"login":"cdce8p","id":30130371,"avatar_url":"https://avatars2.githubusercontent.com/u/30130371?v=4","gravatar_id":"","url":"https://api.github.com/users/cdce8p","html_url":"https://github.com/cdce8p","followers_url":"https://api.github.com/users/cdce8p/followers","following_url":"https://api.github.com/users/cdce8p/following{/other_user}","gists_url":"https://api.github.com/users/cdce8p/gists{/gist_id}","starred_url":"https://api.github.com/users/cdce8p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdce8p/subscriptions","organizations_url":"https://api.github.com/users/cdce8p/orgs","repos_url":"https://api.github.com/users/cdce8p/repos","events_url":"https://api.github.com/users/cdce8p/events{/privacy}","received_events_url":"https://api.github.com/users/cdce8p/received_events","type":"User","site_admin":false},"repo":{"id":98104524,"name":"home-assistant","full_name":"cdce8p/home-assistant","owner":{"login":"cdce8p","id":30130371,"avatar_url":"https://avatars2.githubusercontent.com/u/30130371?v=4","gravatar_id":"","url":"https://api.github.com/users/cdce8p","html_url":"https://github.com/cdce8p","followers_url":"https://api.github.com/users/cdce8p/followers","following_url":"https://api.github.com/users/cdce8p/following{/other_user}","gists_url":"https://api.github.com/users/cdce8p/gists{/gist_id}","starred_url":"https://api.github.com/users/cdce8p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdce8p/subscriptions","organizations_url":"https://api.github.com/users/cdce8p/orgs","repos_url":"https://api.github.com/users/cdce8p/repos","events_url":"https://api.github.com/users/cdce8p/events{/privacy}","received_events_url":"https://api.github.com/users/cdce8p/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cdce8p/home-assistant","description":":house_with_garden: Open-source home automation platform running on Python 3","fork":true,"url":"https://api.github.com/repos/cdce8p/home-assistant","forks_url":"https://api.github.com/repos/cdce8p/home-assistant/forks","keys_url":"https://api.github.com/repos/cdce8p/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cdce8p/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cdce8p/home-assistant/teams","hooks_url":"https://api.github.com/repos/cdce8p/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/cdce8p/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/cdce8p/home-assistant/events","assignees_url":"https://api.github.com/repos/cdce8p/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/cdce8p/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/cdce8p/home-assistant/tags","blobs_url":"https://api.github.com/repos/cdce8p/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cdce8p/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cdce8p/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/cdce8p/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cdce8p/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/cdce8p/home-assistant/languages","stargazers_url":"https://api.github.com/repos/cdce8p/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/cdce8p/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/cdce8p/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/cdce8p/home-assistant/subscription","commits_url":"https://api.github.com/repos/cdce8p/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/cdce8p/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/cdce8p/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/cdce8p/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/cdce8p/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/cdce8p/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cdce8p/home-assistant/merges","archive_url":"https://api.github.com/repos/cdce8p/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cdce8p/home-assistant/downloads","issues_url":"https://api.github.com/repos/cdce8p/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/cdce8p/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/cdce8p/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/cdce8p/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cdce8p/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/cdce8p/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/cdce8p/home-assistant/deployments","created_at":"2017-07-23T14:46:30Z","updated_at":"2017-07-23T14:46:37Z","pushed_at":"2018-02-18T22:59:37Z","git_url":"git://github.com/cdce8p/home-assistant.git","ssh_url":"git@github.com:cdce8p/home-assistant.git","clone_url":"https://github.com/cdce8p/home-assistant.git","svn_url":"https://github.com/cdce8p/home-assistant","homepage":"https://home-assistant.io","size":78466,"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,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"home-assistant:dev","ref":"dev","sha":"6299c054c8970f4acde8858b5f11baf2d4f80fb8","user":{"login":"home-assistant","id":13844975,"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,"name":"home-assistant","full_name":"home-assistant/home-assistant","owner":{"login":"home-assistant","id":13844975,"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},"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":"2018-02-18T22:08:46Z","pushed_at":"2018-02-18T23:31:43Z","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":79005,"stargazers_count":12613,"watchers_count":12613,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3647,"mirror_url":null,"archived":false,"open_issues_count":827,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":3647,"open_issues":827,"watchers":12613,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/12488"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/12488"},"issue":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/12488"},"comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/12488/comments"},"review_comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/12488/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/12488/commits"},"statuses":{"href":"https://api.github.com/repos/home-assistant/home-assistant/statuses/aa10168b44f2c773eed00211d2a650434a328311"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"MartinHjelmare"}}