{"action":"created","comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/89265245","pull_request_review_id":9811435,"id":89265245,"diff_hunk":"@@ -0,0 +1,155 @@\n+\"\"\"\n+Component to interface with universal remote control devices.\n+\n+For more details about this component, please refer to the documentation\n+at https://home-assistant.io/components/remote/\n+\"\"\"\n+from datetime import timedelta\n+import logging\n+import os\n+\n+import voluptuous as vol\n+from homeassistant.config import load_yaml_config_file\n+from homeassistant.helpers.entity_component import EntityComponent\n+from homeassistant.helpers.entity import ToggleEntity\n+import homeassistant.helpers.config_validation as cv\n+from homeassistant.const import (\n+    STATE_ON, SERVICE_TURN_ON, SERVICE_TURN_OFF, ATTR_ENTITY_ID)\n+from homeassistant.components import group\n+from homeassistant.helpers.config_validation import PLATFORM_SCHEMA  # noqa\n+\n+ATTR_DEVICE = 'device'\n+ATTR_COMMAND = 'command'\n+ATTR_ACTIVITY = 'activity'\n+SERVICE_SEND_COMMAND = 'send_command'\n+SERVICE_SYNC = 'sync'\n+ATTR_DEFAULT = ''\n+\n+DOMAIN = 'remote'\n+SCAN_INTERVAL = 30\n+\n+GROUP_NAME_ALL_REMOTES = 'all remotes'","path":"homeassistant/components/remote/__init__.py","position":31,"original_position":31,"commit_id":"ab3ab3a1a7b0dc9a0bbefb3ac8da2ff01641113b","original_commit_id":"ab3ab3a1a7b0dc9a0bbefb3ac8da2ff01641113b","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},"body":"I don't see a use case for an \"all remotes\" group.","created_at":"2016-11-23T07:24:31Z","updated_at":"2016-11-23T07:37:42Z","html_url":"https://github.com/home-assistant/home-assistant/pull/4254#discussion_r89265245","pull_request_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4254","_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/89265245"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/4254#discussion_r89265245"},"pull_request":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4254"}}},"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4254","id":92502711,"html_url":"https://github.com/home-assistant/home-assistant/pull/4254","diff_url":"https://github.com/home-assistant/home-assistant/pull/4254.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/4254.patch","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/4254","number":4254,"state":"open","locked":false,"title":"Remote Component and Harmony Platform","user":{"login":"iandday","id":13158780,"avatar_url":"https://avatars.githubusercontent.com/u/13158780?v=3","gravatar_id":"","url":"https://api.github.com/users/iandday","html_url":"https://github.com/iandday","followers_url":"https://api.github.com/users/iandday/followers","following_url":"https://api.github.com/users/iandday/following{/other_user}","gists_url":"https://api.github.com/users/iandday/gists{/gist_id}","starred_url":"https://api.github.com/users/iandday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandday/subscriptions","organizations_url":"https://api.github.com/users/iandday/orgs","repos_url":"https://api.github.com/users/iandday/repos","events_url":"https://api.github.com/users/iandday/events{/privacy}","received_events_url":"https://api.github.com/users/iandday/received_events","type":"User","site_admin":false},"body":"**Description:**\r\nRemote component and Harmony platform to support control of a Harmony hub from HASS\r\n\r\n**Related issue (if applicable):** N/A\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#1408\r\n\r\n**Example entry for `configuration.yaml` (if applicable):**\r\n```yaml\r\nremote:\r\n  - platform: harmony\r\n    name: Bedroom\r\n    username: !secret username\r\n    password: !secret password\r\n    host: 10.168.1.13\r\n    port: 5222\r\n    activity: BedroomTV\r\n    scan_interval: 45\r\n  - platform: harmony\r\n    name: Family Room\r\n    username: !secret username\r\n    password: !secret password\r\n    host: 10.168.1.16\r\n    port: 5222\r\n    activity: Kodi\r\n    scan_interval: 60\r\n```\r\n\r\n**Checklist:**\r\n\r\nIf user exposed functionality or configuration variables are added/changed:\r\n  - [X] 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  - [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  - [X] 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  - [X] 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-06T21:10:28Z","updated_at":"2016-11-23T07:37:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b818f4cc96a21eb808b63f41f80acbe99fc32e2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4254/commits","review_comments_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4254/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/4254/comments","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/ab3ab3a1a7b0dc9a0bbefb3ac8da2ff01641113b","head":{"label":"iandday:dev","ref":"dev","sha":"ab3ab3a1a7b0dc9a0bbefb3ac8da2ff01641113b","user":{"login":"iandday","id":13158780,"avatar_url":"https://avatars.githubusercontent.com/u/13158780?v=3","gravatar_id":"","url":"https://api.github.com/users/iandday","html_url":"https://github.com/iandday","followers_url":"https://api.github.com/users/iandday/followers","following_url":"https://api.github.com/users/iandday/following{/other_user}","gists_url":"https://api.github.com/users/iandday/gists{/gist_id}","starred_url":"https://api.github.com/users/iandday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandday/subscriptions","organizations_url":"https://api.github.com/users/iandday/orgs","repos_url":"https://api.github.com/users/iandday/repos","events_url":"https://api.github.com/users/iandday/events{/privacy}","received_events_url":"https://api.github.com/users/iandday/received_events","type":"User","site_admin":false},"repo":{"id":69293678,"name":"home-assistant","full_name":"iandday/home-assistant","owner":{"login":"iandday","id":13158780,"avatar_url":"https://avatars.githubusercontent.com/u/13158780?v=3","gravatar_id":"","url":"https://api.github.com/users/iandday","html_url":"https://github.com/iandday","followers_url":"https://api.github.com/users/iandday/followers","following_url":"https://api.github.com/users/iandday/following{/other_user}","gists_url":"https://api.github.com/users/iandday/gists{/gist_id}","starred_url":"https://api.github.com/users/iandday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandday/subscriptions","organizations_url":"https://api.github.com/users/iandday/orgs","repos_url":"https://api.github.com/users/iandday/repos","events_url":"https://api.github.com/users/iandday/events{/privacy}","received_events_url":"https://api.github.com/users/iandday/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iandday/home-assistant","description":":house_with_garden: Open-source home automation platform running on Python 3","fork":true,"url":"https://api.github.com/repos/iandday/home-assistant","forks_url":"https://api.github.com/repos/iandday/home-assistant/forks","keys_url":"https://api.github.com/repos/iandday/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iandday/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iandday/home-assistant/teams","hooks_url":"https://api.github.com/repos/iandday/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/iandday/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/iandday/home-assistant/events","assignees_url":"https://api.github.com/repos/iandday/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/iandday/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/iandday/home-assistant/tags","blobs_url":"https://api.github.com/repos/iandday/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iandday/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iandday/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/iandday/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iandday/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/iandday/home-assistant/languages","stargazers_url":"https://api.github.com/repos/iandday/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/iandday/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/iandday/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/iandday/home-assistant/subscription","commits_url":"https://api.github.com/repos/iandday/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/iandday/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/iandday/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/iandday/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/iandday/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/iandday/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iandday/home-assistant/merges","archive_url":"https://api.github.com/repos/iandday/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iandday/home-assistant/downloads","issues_url":"https://api.github.com/repos/iandday/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/iandday/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/iandday/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/iandday/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iandday/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/iandday/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/iandday/home-assistant/deployments","created_at":"2016-09-26T21:18:16Z","updated_at":"2016-09-26T21:18:20Z","pushed_at":"2016-11-23T00:05:57Z","git_url":"git://github.com/iandday/home-assistant.git","ssh_url":"git@github.com:iandday/home-assistant.git","clone_url":"https://github.com/iandday/home-assistant.git","svn_url":"https://github.com/iandday/home-assistant","homepage":"https://home-assistant.io","size":43730,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"home-assistant:dev","ref":"dev","sha":"00019b9ff0fdc8d8ff211ac71e0649bc8f20d9e4","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-23T03:10:26Z","pushed_at":"2016-11-23T07:22:52Z","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":86357,"stargazers_count":4699,"watchers_count":4699,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1234,"mirror_url":null,"open_issues_count":303,"forks":1234,"open_issues":303,"watchers":4699,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4254"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/4254"},"issue":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/4254"},"comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/4254/comments"},"review_comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/4254/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/4254/commits"},"statuses":{"href":"https://api.github.com/repos/home-assistant/home-assistant/statuses/ab3ab3a1a7b0dc9a0bbefb3ac8da2ff01641113b"}}}}
{"actor":{"display_login":"balloob"}}