{"action":"created","comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/88462411","pull_request_review_id":9034809,"id":88462411,"diff_hunk":"@@ -0,0 +1,299 @@\n+\"\"\"\n+Support for the Broadlink RM2 Pro (only temperature) and A1 devices.\n+For more details about this platform, please refer to the documentation at\n+https://home-assistant.io/components/sensor.broadlink/\n+\"\"\"\n+\n+import time\n+import random\n+import socket\n+import logging\n+import binascii\n+import threading\n+import voluptuous as vol\n+from datetime import datetime, timedelta\n+from homeassistant.util import Throttle\n+from homeassistant.components.sensor import PLATFORM_SCHEMA\n+from homeassistant.const import (CONF_NAME, CONF_HOST, CONF_MAC, TEMP_CELSIUS, CONF_MONITORED_CONDITIONS)","path":"homeassistant/components/sensor/broadlink.py","position":17,"original_position":17,"commit_id":"6472b967f1dc34aef0ad3ffbff9bb058c4f4ac3c","original_commit_id":"6472b967f1dc34aef0ad3ffbff9bb058c4f4ac3c","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.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":"line too long (105 > 79 characters)","created_at":"2016-11-17T14:29:13Z","updated_at":"2016-11-17T14:29:13Z","html_url":"https://github.com/home-assistant/home-assistant/pull/4433#discussion_r88462411","pull_request_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4433","_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/88462411"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/4433#discussion_r88462411"},"pull_request":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4433"}}},"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4433","id":94170698,"html_url":"https://github.com/home-assistant/home-assistant/pull/4433","diff_url":"https://github.com/home-assistant/home-assistant/pull/4433.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/4433.patch","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4433","number":4433,"state":"open","locked":false,"title":"Adding support for Broadlink RM2 and A1 Devices","user":{"login":"skyval","id":12613654,"avatar_url":"https://avatars.githubusercontent.com/u/12613654?v=3","gravatar_id":"","url":"https://api.github.com/users/skyval","html_url":"https://github.com/skyval","followers_url":"https://api.github.com/users/skyval/followers","following_url":"https://api.github.com/users/skyval/following{/other_user}","gists_url":"https://api.github.com/users/skyval/gists{/gist_id}","starred_url":"https://api.github.com/users/skyval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyval/subscriptions","organizations_url":"https://api.github.com/users/skyval/orgs","repos_url":"https://api.github.com/users/skyval/repos","events_url":"https://api.github.com/users/skyval/events{/privacy}","received_events_url":"https://api.github.com/users/skyval/received_events","type":"User","site_admin":false},"body":"**Description:**\r\nAdding support for Broadlink RM2 and A1 Devices. At present, only RM Pro (referred to as RM2 in the codebase) and A1 sensor platform devices are supported. There is currently no support for the cloud API.\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\nplatform: broadlink\r\nupdate_interval: 300\r\nhost: AAA.BBB.CCC.DDD\r\nmac: '00:00:00:00:00:00'\r\nname: \"Kitchen\"\r\nmonitored_conditions:\r\n  - temperature\r\n  - humidity\r\n  - air_quality\r\n  - light\r\n  - noise\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  - [x] 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  - [x] 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#L16\r\n[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L51\r\n","created_at":"2016-11-17T13:52:04Z","updated_at":"2016-11-17T14:29:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16e350673506b5d2fb68b6e64512b0cbb6bedc0a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4433/commits","review_comments_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4433/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/4433/comments","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/6472b967f1dc34aef0ad3ffbff9bb058c4f4ac3c","head":{"label":"skyval:dev","ref":"dev","sha":"6472b967f1dc34aef0ad3ffbff9bb058c4f4ac3c","user":{"login":"skyval","id":12613654,"avatar_url":"https://avatars.githubusercontent.com/u/12613654?v=3","gravatar_id":"","url":"https://api.github.com/users/skyval","html_url":"https://github.com/skyval","followers_url":"https://api.github.com/users/skyval/followers","following_url":"https://api.github.com/users/skyval/following{/other_user}","gists_url":"https://api.github.com/users/skyval/gists{/gist_id}","starred_url":"https://api.github.com/users/skyval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyval/subscriptions","organizations_url":"https://api.github.com/users/skyval/orgs","repos_url":"https://api.github.com/users/skyval/repos","events_url":"https://api.github.com/users/skyval/events{/privacy}","received_events_url":"https://api.github.com/users/skyval/received_events","type":"User","site_admin":false},"repo":{"id":74030721,"name":"home-assistant","full_name":"skyval/home-assistant","owner":{"login":"skyval","id":12613654,"avatar_url":"https://avatars.githubusercontent.com/u/12613654?v=3","gravatar_id":"","url":"https://api.github.com/users/skyval","html_url":"https://github.com/skyval","followers_url":"https://api.github.com/users/skyval/followers","following_url":"https://api.github.com/users/skyval/following{/other_user}","gists_url":"https://api.github.com/users/skyval/gists{/gist_id}","starred_url":"https://api.github.com/users/skyval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyval/subscriptions","organizations_url":"https://api.github.com/users/skyval/orgs","repos_url":"https://api.github.com/users/skyval/repos","events_url":"https://api.github.com/users/skyval/events{/privacy}","received_events_url":"https://api.github.com/users/skyval/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skyval/home-assistant","description":":house_with_garden: Open-source home automation platform running on Python 3","fork":true,"url":"https://api.github.com/repos/skyval/home-assistant","forks_url":"https://api.github.com/repos/skyval/home-assistant/forks","keys_url":"https://api.github.com/repos/skyval/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skyval/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skyval/home-assistant/teams","hooks_url":"https://api.github.com/repos/skyval/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/skyval/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/skyval/home-assistant/events","assignees_url":"https://api.github.com/repos/skyval/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/skyval/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/skyval/home-assistant/tags","blobs_url":"https://api.github.com/repos/skyval/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skyval/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skyval/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/skyval/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skyval/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/skyval/home-assistant/languages","stargazers_url":"https://api.github.com/repos/skyval/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/skyval/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/skyval/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/skyval/home-assistant/subscription","commits_url":"https://api.github.com/repos/skyval/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/skyval/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/skyval/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/skyval/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/skyval/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/skyval/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skyval/home-assistant/merges","archive_url":"https://api.github.com/repos/skyval/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skyval/home-assistant/downloads","issues_url":"https://api.github.com/repos/skyval/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/skyval/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/skyval/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/skyval/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skyval/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/skyval/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/skyval/home-assistant/deployments","created_at":"2016-11-17T13:43:46Z","updated_at":"2016-11-17T13:43:51Z","pushed_at":"2016-11-17T14:29:06Z","git_url":"git://github.com/skyval/home-assistant.git","ssh_url":"git@github.com:skyval/home-assistant.git","clone_url":"https://github.com/skyval/home-assistant.git","svn_url":"https://github.com/skyval/home-assistant","homepage":"https://home-assistant.io","size":86166,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":"38d201a54a70a9a55e1350e93c03a3f115b29079","user":{"login":"home-assistant","id":13844975,"avatar_url":"https://avatars.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://avatars.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":"2016-11-17T14:07:45Z","pushed_at":"2016-11-17T14:29:07Z","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":86166,"stargazers_count":4659,"watchers_count":4659,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1217,"mirror_url":null,"open_issues_count":338,"forks":1217,"open_issues":338,"watchers":4659,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4433"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/4433"},"issue":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/4433"},"comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/4433/comments"},"review_comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4433/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/4433/commits"},"statuses":{"href":"https://api.github.com/repos/home-assistant/home-assistant/statuses/6472b967f1dc34aef0ad3ffbff9bb058c4f4ac3c"}}}}
{"actor":{"display_login":"houndci-bot"}}