{"action":"created","comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/230570032","pull_request_review_id":171343915,"id":230570032,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDU3MDAzMg==","diff_hunk":"@@ -93,29 +118,217 @@ def __init__(self):\n             if not verify_certificate:\n                 self.add_event_handler('ssl_invalid_cert',\n                                        self.discard_ssl_invalid_cert)\n+            if data:\n+                # Init XEPs for image sending\n+                self.register_plugin('xep_0030')  # OOB dep\n+                self.register_plugin('xep_0066')  # Out of Band Data\n+                self.register_plugin('xep_0071')  # XHTML IM\n+                self.register_plugin('xep_0128')  # Service Discovery\n+                self.register_plugin('xep_0363')  # HTTP upload\n \n             self.connect(force_starttls=self.force_starttls, use_ssl=False)\n \n-        def start(self, event):\n+        async def start(self, event):\n             \"\"\"Start the communication and sends the message.\"\"\"\n-            self.get_roster()\n-            self.send_presence()\n+            # Sending image and message independently from each other\n+            if data:\n+                await self.send_file(timeout=timeout)\n+            if message:\n+                self.send_text_message()\n+\n+            self.disconnect(wait=True)\n+\n+        async def send_file(self, timeout=None):\n+            \"\"\"Send file via XMPP.\n+\n+            Send XMPP file message using OOB (XEP_0066) and\n+            HTTP Upload (XEP_0363)\n+            \"\"\"\n             if room:\n-                _LOGGER.debug(\"Joining room %s\", room)\n                 self.plugin['xep_0045'].join_muc(room, sender, wait=True)\n-                self.send_message(mto=room, mbody=message, mtype='groupchat')\n+\n+            try:\n+                # Uploading with XEP_0363\n+                _LOGGER.debug(\"Timeout set to %ss\", timeout)\n+                url = await self.upload_file(timeout=timeout)\n+                if url is None:\n+                    raise FileUploadError(\"Could not upload file\")\n+            except (IqError, IqTimeout, XMPPError) as ex:\n+                _LOGGER.error(\"Upload error, could not send message %s\", ex)\n+            except NotConnectedError as ex:\n+                _LOGGER.error(\"Connection error %s\", ex)\n+            except FileTooBig as ex:\n+                _LOGGER.error(\n+                    \"File too big for server, could not upload file %s\", ex)\n+            except UploadServiceNotFound as ex:\n+                _LOGGER.error(\"UploadServiceNotFound: \"\n+                              \" could not upload file %s\", ex)\n+            except FileUploadError as ex:\n+                _LOGGER.error(\"FileUploadError, could not upload file %s\", ex)\n+            except requests.exceptions.SSLError as ex:\n+                _LOGGER.error(\"Cannot establish SSL connection %s\", ex)\n+            except requests.exceptions.ConnectionError as ex:\n+                _LOGGER.error(\"Cannot connect to server %s\", ex)\n+            except (FileNotFoundError,\n+                    PermissionError,\n+                    IsADirectoryError,\n+                    TimeoutError) as ex:\n+                _LOGGER.error(\"Error reading file %s\", ex)\n+            except FutTimeoutError as ex:\n+                _LOGGER.error(\"The server did not respond in time, %s\", ex)\n             else:\n-                self.send_message(mto=recipient, mbody=message, mtype='chat')\n-            self.disconnect(wait=True)\n+                _LOGGER.info(\"Upload success\")\n+\n+                if room:\n+                    _LOGGER.info(\"Sending file to %s\", room)\n+                    message = self.Message(sto=room, stype='groupchat')\n+                else:\n+                    _LOGGER.info(\"Sending file to %s\", recipient)\n+                    message = self.Message(sto=recipient, stype='chat')\n+\n+                message['body'] = url\n+                # pylint: disable=invalid-sequence-index\n+                message['oob']['url'] = url\n+                try:\n+                    message.send()\n+                except (IqError, IqTimeout, XMPPError) as ex:\n+                    _LOGGER.error(\"Could not send image message %s\", ex)\n+\n+        async def upload_file(self, timeout=None):\n+            \"\"\"Upload file to Jabber server and return new URL.\n+\n+            upload a file with Jabber XEP_0363 from a remote URL or a local\n+            file path and return a URL of that file.\n+            \"\"\"\n+            if data.get(ATTR_URL_TEMPLATE):\n+                _LOGGER.debug(\n+                    \"Got url template: %s\", data.get(ATTR_URL_TEMPLATE))\n+                templ = template_helper.Template(\n+                    data.get(ATTR_URL_TEMPLATE), hass)\n+                get_url = template_helper.render_complex(templ, None)\n+                url = await self.upload_file_from_url(\n+                    get_url, timeout=timeout)\n+            elif data.get(ATTR_URL):\n+                url = await self.upload_file_from_url(\n+                    data.get(ATTR_URL), timeout=timeout)\n+            elif data.get(ATTR_PATH_TEMPLATE):\n+                _LOGGER.debug(\n+                    \"Got path template: %s\", data.get(ATTR_PATH_TEMPLATE))\n+                templ = template_helper.Template(\n+                    data.get(ATTR_PATH_TEMPLATE), hass)\n+                get_path = template_helper.render_complex(templ, None)\n+                url = await self.upload_file_from_path(\n+                    get_path, timeout=timeout)\n+            elif data.get(ATTR_PATH):\n+                url = await self.upload_file_from_path(\n+                    data.get(ATTR_PATH), timeout=timeout)\n+            else:\n+                url = None\n+\n+            if url is None:\n+                _LOGGER.error(\"No path or URL found for file\")\n+\n+            return url\n+\n+        async def upload_file_from_url(self, url, timeout=None):\n+            \"\"\"Upload a file from a URL. Returns a URL.\n+\n+            uploaded via XEP_0363 and HTTP and returns the resulting URL\n+            \"\"\"\n+            _LOGGER.info(\"Getting file from %s\", url)\n+\n+            def get_url(url):","path":"homeassistant/components/notify/xmpp.py","position":246,"original_position":246,"commit_id":"513394a8752e27ebf2963241f3c4e345b517d50c","original_commit_id":"513394a8752e27ebf2963241f3c4e345b517d50c","user":{"login":"fabaff","id":116184,"node_id":"MDQ6VXNlcjExNjE4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/116184?v=4","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},"body":"Docstring is missing. Sorry, didn't see that earlier.","created_at":"2018-11-03T22:50:58Z","updated_at":"2018-11-03T22:50:58Z","html_url":"https://github.com/home-assistant/home-assistant/pull/17426#discussion_r230570032","pull_request_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/17426","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/230570032"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/17426#discussion_r230570032"},"pull_request":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/17426"}}},"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/17426","id":222699879,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNjk5ODc5","html_url":"https://github.com/home-assistant/home-assistant/pull/17426","diff_url":"https://github.com/home-assistant/home-assistant/pull/17426.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/17426.patch","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/17426","number":17426,"state":"open","locked":false,"title":"XMPP HTTP upload","user":{"login":"flowolf","id":900893,"node_id":"MDQ6VXNlcjkwMDg5Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/900893?v=4","gravatar_id":"","url":"https://api.github.com/users/flowolf","html_url":"https://github.com/flowolf","followers_url":"https://api.github.com/users/flowolf/followers","following_url":"https://api.github.com/users/flowolf/following{/other_user}","gists_url":"https://api.github.com/users/flowolf/gists{/gist_id}","starred_url":"https://api.github.com/users/flowolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flowolf/subscriptions","organizations_url":"https://api.github.com/users/flowolf/orgs","repos_url":"https://api.github.com/users/flowolf/repos","events_url":"https://api.github.com/users/flowolf/events{/privacy}","received_events_url":"https://api.github.com/users/flowolf/received_events","type":"User","site_admin":false},"body":"## Description:\r\n\r\nAdd support for sending files through Jabber and HTTP upload (XEP_0363)\r\ncan load a file from a local file or a remote URL. e.g. images. 🖼\r\n\r\n**Related issue (if applicable):** none\r\n\r\n**Pull request in [home-assistant.io](https://github.com/home-assistant/home-assistant.io) with documentation (if applicable):** home-assistant/home-assistant.io#6788\r\n\r\n## Example entry for `configuration.yaml` (if applicable):\r\n```yaml\r\n# Example configuration.yaml entry\r\nnotify:\r\n  - name: NOTIFIER_NAME  # e.g. jabber\r\n    platform: xmpp\r\n    sender: YOUR_JID\r\n    password: YOUR_JABBER_ACCOUNT_PASSWORD\r\n    recipient: YOUR_RECIPIENT\r\n    tls: true\r\n```\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\r\nIf user exposed functionality or configuration variables are added/changed:\r\n  - [x] Documentation added/updated in [home-assistant.io](https://github.com/home-assistant/home-assistant.io)\r\n\r\nIf the code communicates with devices, web services, or third-party tools:\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 or updated dependencies have been added to `requirements_all.txt` by running `script/gen_requirements_all.py`.\r\n  - [x] New files were added to `.coveragerc`.\r\n\r\nIf the code does not interact with devices:\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":"2018-10-14T08:03:30Z","updated_at":"2018-11-03T22:50:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79534dd7bc8ca6a13c0aa0cb0192f1d4141af8a1","assignee":{"login":"fabaff","id":116184,"node_id":"MDQ6VXNlcjExNjE4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/116184?v=4","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},"assignees":[{"login":"fabaff","id":116184,"node_id":"MDQ6VXNlcjExNjE4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/116184?v=4","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}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":450787042,"node_id":"MDU6TGFiZWw0NTA3ODcwNDI=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/Hacktoberfest","name":"Hacktoberfest","color":"fbca04","default":false},{"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":553421020,"node_id":"MDU6TGFiZWw1NTM0MjEwMjA=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/component:%20notify","name":"component: notify","color":"ededed","default":false},{"id":451931292,"node_id":"MDU6TGFiZWw0NTE5MzEyOTI=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/core","name":"core","color":"c5def5","default":false},{"id":955422305,"node_id":"MDU6TGFiZWw5NTU0MjIzMDU=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/17426/commits","review_comments_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/17426/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/17426/comments","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/513394a8752e27ebf2963241f3c4e345b517d50c","head":{"label":"flowolf:xmpp_http_upload","ref":"xmpp_http_upload","sha":"513394a8752e27ebf2963241f3c4e345b517d50c","user":{"login":"flowolf","id":900893,"node_id":"MDQ6VXNlcjkwMDg5Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/900893?v=4","gravatar_id":"","url":"https://api.github.com/users/flowolf","html_url":"https://github.com/flowolf","followers_url":"https://api.github.com/users/flowolf/followers","following_url":"https://api.github.com/users/flowolf/following{/other_user}","gists_url":"https://api.github.com/users/flowolf/gists{/gist_id}","starred_url":"https://api.github.com/users/flowolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flowolf/subscriptions","organizations_url":"https://api.github.com/users/flowolf/orgs","repos_url":"https://api.github.com/users/flowolf/repos","events_url":"https://api.github.com/users/flowolf/events{/privacy}","received_events_url":"https://api.github.com/users/flowolf/received_events","type":"User","site_admin":false},"repo":{"id":75383165,"node_id":"MDEwOlJlcG9zaXRvcnk3NTM4MzE2NQ==","name":"home-assistant","full_name":"flowolf/home-assistant","private":false,"owner":{"login":"flowolf","id":900893,"node_id":"MDQ6VXNlcjkwMDg5Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/900893?v=4","gravatar_id":"","url":"https://api.github.com/users/flowolf","html_url":"https://github.com/flowolf","followers_url":"https://api.github.com/users/flowolf/followers","following_url":"https://api.github.com/users/flowolf/following{/other_user}","gists_url":"https://api.github.com/users/flowolf/gists{/gist_id}","starred_url":"https://api.github.com/users/flowolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flowolf/subscriptions","organizations_url":"https://api.github.com/users/flowolf/orgs","repos_url":"https://api.github.com/users/flowolf/repos","events_url":"https://api.github.com/users/flowolf/events{/privacy}","received_events_url":"https://api.github.com/users/flowolf/received_events","type":"User","site_admin":false},"html_url":"https://github.com/flowolf/home-assistant","description":":house_with_garden: Open-source home automation platform running on Python 3","fork":true,"url":"https://api.github.com/repos/flowolf/home-assistant","forks_url":"https://api.github.com/repos/flowolf/home-assistant/forks","keys_url":"https://api.github.com/repos/flowolf/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flowolf/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flowolf/home-assistant/teams","hooks_url":"https://api.github.com/repos/flowolf/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/flowolf/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/flowolf/home-assistant/events","assignees_url":"https://api.github.com/repos/flowolf/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/flowolf/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/flowolf/home-assistant/tags","blobs_url":"https://api.github.com/repos/flowolf/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flowolf/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flowolf/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/flowolf/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flowolf/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/flowolf/home-assistant/languages","stargazers_url":"https://api.github.com/repos/flowolf/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/flowolf/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/flowolf/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/flowolf/home-assistant/subscription","commits_url":"https://api.github.com/repos/flowolf/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/flowolf/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/flowolf/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/flowolf/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/flowolf/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/flowolf/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flowolf/home-assistant/merges","archive_url":"https://api.github.com/repos/flowolf/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flowolf/home-assistant/downloads","issues_url":"https://api.github.com/repos/flowolf/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/flowolf/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/flowolf/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/flowolf/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flowolf/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/flowolf/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/flowolf/home-assistant/deployments","created_at":"2016-12-02T09:53:59Z","updated_at":"2018-10-30T08:52:59Z","pushed_at":"2018-11-02T15:47:13Z","git_url":"git://github.com/flowolf/home-assistant.git","ssh_url":"git@github.com:flowolf/home-assistant.git","clone_url":"https://github.com/flowolf/home-assistant.git","svn_url":"https://github.com/flowolf/home-assistant","homepage":"https://home-assistant.io","size":91963,"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":{"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":"f1988594412f97e2543150118e353a405f92c036","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":"2018-11-03T22:48:47Z","pushed_at":"2018-11-03T22:48:09Z","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":92398,"stargazers_count":18127,"watchers_count":18127,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5329,"mirror_url":null,"archived":false,"open_issues_count":954,"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":5329,"open_issues":954,"watchers":18127,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/17426"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/17426"},"issue":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/17426"},"comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/17426/comments"},"review_comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/17426/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/17426/commits"},"statuses":{"href":"https://api.github.com/repos/home-assistant/home-assistant/statuses/513394a8752e27ebf2963241f3c4e345b517d50c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fabaff"}}