{"action":"created","comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/110471625","pull_request_review_id":31652239,"id":110471625,"diff_hunk":"@@ -0,0 +1,247 @@\n+\"\"\"\n+Support for Enigma2 Settopboxes\n+\n+\"\"\"\n+import logging\n+import urllib.request\n+import urllib.parse\n+\n+import voluptuous as vol\n+\n+from homeassistant.components.media_player import (\n+    SUPPORT_SELECT_SOURCE, MediaPlayerDevice, PLATFORM_SCHEMA,\n+    SUPPORT_TURN_OFF, SUPPORT_TURN_ON, SUPPORT_VOLUME_MUTE, SUPPORT_VOLUME_SET)\n+\n+from homeassistant.const import (\n+    CONF_HOST, STATE_OFF, STATE_ON, STATE_UNKNOWN, CONF_NAME, CONF_PORT,\n+    CONF_USERNAME, CONF_PASSWORD, CONF_TIMEOUT)\n+\n+REQUIREMENTS = ['beautifulsoup4==4.5.1']\n+\n+from homeassistant.util import Throttle\n+from datetime import timedelta\n+from bs4 import BeautifulSoup\n+\n+import homeassistant.helpers.config_validation as cv\n+\n+# Return cached results if last scan was less then this time ago.\n+MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)\n+\n+DEFAULT_NAME = 'Enigma2 Satelite'\n+DEFAULT_PORT = 80\n+DEFAULT_TIMEOUT = None\n+DEFAULT_USERNAME = 'root'\n+DEFAULT_PASSWORD = 'password'\n+\n+SUPPORT_ENIGMA = SUPPORT_VOLUME_SET | SUPPORT_VOLUME_MUTE | \\\n+                 SUPPORT_TURN_ON | SUPPORT_TURN_OFF | \\\n+                 SUPPORT_SELECT_SOURCE\n+\n+MAX_VOLUME = 100\n+\n+PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({\n+    vol.Required(CONF_HOST): cv.string,\n+    vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,\n+    vol.Optional(CONF_USERNAME, default=DEFAULT_USERNAME): cv.string,\n+    vol.Optional(CONF_PASSWORD, default=DEFAULT_PASSWORD): cv.string,\n+    vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,\n+    vol.Optional(CONF_TIMEOUT, default=DEFAULT_TIMEOUT): cv.socket_timeout,\n+})\n+\n+def setup_platform(hass, config, add_devices, discovery_info=None):\n+    \"\"\"Setup the Enigma platform.\"\"\"\n+    enigma = EnigmaDevice(config.get(CONF_NAME),\n+                          config.get(CONF_HOST),\n+                          config.get(CONF_PORT),\n+                          config.get(CONF_USERNAME),\n+                          config.get(CONF_PASSWORD),\n+                          config.get(CONF_TIMEOUT))\n+    if enigma.update():\n+        add_devices([enigma])\n+        return True\n+    return False\n+\n+class EnigmaDevice(MediaPlayerDevice):\n+    \"\"\"Representation of a Enigma device.\"\"\"\n+\n+    def __init__(self, name, host, port, username, password, timeout):\n+        \"\"\"Initialize the Enigma device.\"\"\"\n+        self._name = name\n+        self._host = host\n+        self._port = port\n+        self._username = username\n+        self._password = password\n+        self._timeout = timeout\n+        self._pwstate = True\n+        self._volume = 0\n+        self._muted = False\n+        self._selected_source = ''\n+        self._source_names = {}\n+        self._sources = {}\n+        self.__handle_base_auth()\n+        self.__load_sources()\n+\n+    def __handle_base_auth(self):\n+        \"\"\"Handle HTTP Auth\"\"\"\n+        password_mgr = urllib.request.HTTPPasswordMgrWithDefaultRealm()\n+        password_mgr.add_password(None, self._host, self._username, self._password)\n+        handler = urllib.request.HTTPBasicAuthHandler(password_mgr)\n+        opener = urllib.request.build_opener(handler)\n+        urllib.request.install_opener(opener)\n+\n+    def __load_sources(self):\n+        \"\"\"Load sources from first bouquet\"\"\"\n+        bouquet_reference = self.__get_bouquet_reference()\n+        try:\n+            epgbouquet_xml = self.__requestCall('/web/epgnow?bRef=' + urllib.parse.quote_plus(bouquet_reference))\n+        except (HTTPError, URLError, ConnectionRefusedError):\n+            return False\n+        epgbouquet_soup = BeautifulSoup(epgbouquet_xml, 'html.parser')\n+        service_names = epgbouquet_soup.find_all('e2eventservicename')\n+        self._source_names = [service_name.string for service_name in service_names]\n+        service_references = epgbouquet_soup.find_all('e2eventservicereference')\n+        sources = [service_reference.string for service_reference in service_references]\n+        self._sources = dict(zip(self._source_names, sources))\n+\n+    def __get_bouquet_reference(self):\n+        \"\"\"Get first bouquet reference\"\"\"\n+        try:\n+            bouquets_xml = self.__requestCall('/web/bouquets')\n+        except (HTTPError, URLError, ConnectionRefusedError):\n+            return False\n+        bouquets_soup = BeautifulSoup(bouquets_xml, 'html.parser')\n+        return bouquets_soup.find('e2servicereference').renderContents().decode('UTF8')\n+\n+    def __requestCall(self, url):\n+        return urllib.request.urlopen('http://' + self._host + url, timeout = 10).read().decode('UTF8')\n+\n+    @Throttle(MIN_TIME_BETWEEN_SCANS)\n+    def update(self):\n+        \"\"\"Get the latest details from the device.\"\"\"\n+        try:\n+            powerstate_xml = self.__requestCall('/web/powerstate')\n+        except (HTTPError, URLError, ConnectionRefusedError):\n+            return False\n+\n+        powerstate_soup = BeautifulSoup(powerstate_xml, 'html.parser')\n+        pwstate = powerstate_soup.e2instandby.renderContents().decode('UTF8')\n+\n+        self._pwstate = ''\n+\n+        if pwstate.find('false') >=0:\n+           self._pwstate = 'false'\n+\n+        if pwstate.find('true') >=0:\n+           self._pwstate = 'true'\n+\n+        if self._name == 'Enigma2 Satelite':\n+            about_xml = self.__requestCall('/web/about')\n+            about_soup = BeautifulSoup(about_xml, 'html.parser')\n+            name = about_soup.e2model.renderContents().decode('UTF8')\n+            if name:\n+                self._name = name\n+\n+        if self._pwstate == 'false':\n+            subservices_xml = self.__requestCall('/web/subservices')\n+            subservices_soup = BeautifulSoup(subservices_xml, 'html.parser')\n+            servicename = subservices_soup.e2servicename.renderContents().decode('UTF8')\n+            service_reference = subservices_soup.e2servicereference.renderContents().decode('UTF8')\n+\n+            eventtitle = 'N/A'\n+            if service_reference != 'N/A':\n+                epgservicenow_xml = self.__requestCall('/web/epgservicenow?sRef=' + service_reference)\n+                epgservicenow_soup = BeautifulSoup(epgservicenow_xml, 'html.parser')\n+                eventtitle = epgservicenow_soup.e2eventtitle.renderContents().decode('UTF8')\n+\n+            vol_xml = self.__requestCall('/web/vol')\n+            vol_soup = BeautifulSoup(vol_xml, 'html.parser')\n+            volcurrent = vol_soup.e2current.renderContents().decode('UTF8')\n+            volmuted = vol_soup.e2ismuted.renderContents().decode('UTF8')\n+\n+            self._volume = int(volcurrent) / MAX_VOLUME if volcurrent else None\n+            self._muted = (volmuted == 'True') if volmuted else None\n+\n+            self._selected_source = (servicename + ' - ' + eventtitle)\n+\n+        return True\n+\n+    @property\n+    def name(self):\n+        \"\"\"Return the name of the device.\"\"\"\n+        return self._name\n+\n+    @property\n+    def state(self):\n+        \"\"\"Return the state of the device.\"\"\"\n+        if self._pwstate == 'true':\n+            return STATE_OFF\n+        if self._pwstate == 'false':\n+            return STATE_ON\n+\n+        return STATE_UNKNOWN\n+\n+    @property\n+    def volume_level(self):\n+        \"\"\"Volume level of the media player (0..1).\"\"\"\n+        return self._volume\n+\n+    @property\n+    def is_volume_muted(self):\n+        \"\"\"Boolean if volume is currently muted.\"\"\"\n+        return self._muted\n+\n+    @property\n+    def supported_media_commands(self):\n+        \"\"\"Flag of media commands that are supported.\"\"\"\n+        return SUPPORT_ENIGMA\n+\n+    @property\n+    def media_title(self):\n+        \"\"\"Title of current playing media.\"\"\"\n+        return self._selected_source\n+\n+    @property\n+    def source(self):\n+        \"\"\"Return the current input source.\"\"\"\n+        return self._selected_source\n+\n+    @property\n+    def source_list(self):\n+        \"\"\"List of available input sources.\"\"\"\n+        return self._source_names\n+\n+    def select_source(self, source):\n+        \"\"\"Select input source.\"\"\"\n+        try:\n+           self.__requestCall('/web/zap?sRef=' + self._sources[source])\n+        except (HTTPError, URLError, ConnectionRefusedError):\n+           return False\n+\n+    def set_volume_level(self, volume):\n+        \"\"\"Set volume level, range 0..1.\"\"\"\n+        try:\n+           volset = str(round(volume * MAX_VOLUME))\n+           self.__requestCall('/web/vol?set=set' + volset)\n+        except (HTTPError, URLError, ConnectionRefusedError):\n+           return False\n+\n+    def mute_volume(self, mute):\n+        \"\"\"Mute or unmute media player.\"\"\"\n+        try:\n+           self.__requestCall('/web/vol?set=mute')\n+        except (HTTPError, URLError, ConnectionRefusedError):","path":"homeassistant/components/media_player/enigma.py","position":232,"original_position":232,"commit_id":"5c08dbf2cb90d428695039ef465bf4e10fc7c878","original_commit_id":"5c08dbf2cb90d428695039ef465bf4e10fc7c878","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.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":"undefined name 'HTTPError'<br>undefined name 'URLError'","created_at":"2017-04-07T20:02:20Z","updated_at":"2017-04-07T20:02:21Z","html_url":"https://github.com/home-assistant/home-assistant/pull/6977#discussion_r110471625","pull_request_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/6977","_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/110471625"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/6977#discussion_r110471625"},"pull_request":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/6977"}}},"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/6977","id":114889927,"html_url":"https://github.com/home-assistant/home-assistant/pull/6977","diff_url":"https://github.com/home-assistant/home-assistant/pull/6977.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/6977.patch","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/6977","number":6977,"state":"open","locked":false,"title":"Add new media_player platform: Enigma2 Media Player","user":{"login":"KavajNaruj","id":22551250,"avatar_url":"https://avatars2.githubusercontent.com/u/22551250?v=3","gravatar_id":"","url":"https://api.github.com/users/KavajNaruj","html_url":"https://github.com/KavajNaruj","followers_url":"https://api.github.com/users/KavajNaruj/followers","following_url":"https://api.github.com/users/KavajNaruj/following{/other_user}","gists_url":"https://api.github.com/users/KavajNaruj/gists{/gist_id}","starred_url":"https://api.github.com/users/KavajNaruj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KavajNaruj/subscriptions","organizations_url":"https://api.github.com/users/KavajNaruj/orgs","repos_url":"https://api.github.com/users/KavajNaruj/repos","events_url":"https://api.github.com/users/KavajNaruj/events{/privacy}","received_events_url":"https://api.github.com/users/KavajNaruj/received_events","type":"User","site_admin":false},"body":"## Description:\r\nEnigma2 Media Player is the linux based settopbox controller http://wiki.blue-panel.com/index.php/Enigma2_(en) There are many images for various boxes (such as VU+ or Dream multimedia...) This platform allows basic control of this box and displays the information of currently playing channel.\r\n\r\n**Pull request in [home-assistant.github.io](https://github.com/home-assistant/home-assistant.github.io) with documentation (if applicable):**https://github.com/home-assistant/home-assistant.github.io/pull/2395\r\n\r\n## Example entry for `configuration.yaml`:\r\n```yaml\r\nmedia_player:\r\n  - platform: enigma\r\n    host: 192.168.1.x\r\n    port: 80\r\n    username: root\r\n    password: pass\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  - [ ] 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#L14\r\n[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L54\r\n","created_at":"2017-04-07T20:02:10Z","updated_at":"2017-04-07T20:02:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ce1ea92e8a91ff9f58040679d1493afdefe7458","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/6977/commits","review_comments_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/6977/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/6977/comments","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/5c08dbf2cb90d428695039ef465bf4e10fc7c878","head":{"label":"KavajNaruj:kavajnaruj/enigma","ref":"kavajnaruj/enigma","sha":"5c08dbf2cb90d428695039ef465bf4e10fc7c878","user":{"login":"KavajNaruj","id":22551250,"avatar_url":"https://avatars2.githubusercontent.com/u/22551250?v=3","gravatar_id":"","url":"https://api.github.com/users/KavajNaruj","html_url":"https://github.com/KavajNaruj","followers_url":"https://api.github.com/users/KavajNaruj/followers","following_url":"https://api.github.com/users/KavajNaruj/following{/other_user}","gists_url":"https://api.github.com/users/KavajNaruj/gists{/gist_id}","starred_url":"https://api.github.com/users/KavajNaruj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KavajNaruj/subscriptions","organizations_url":"https://api.github.com/users/KavajNaruj/orgs","repos_url":"https://api.github.com/users/KavajNaruj/repos","events_url":"https://api.github.com/users/KavajNaruj/events{/privacy}","received_events_url":"https://api.github.com/users/KavajNaruj/received_events","type":"User","site_admin":false},"repo":{"id":69699448,"name":"home-assistant","full_name":"KavajNaruj/home-assistant","owner":{"login":"KavajNaruj","id":22551250,"avatar_url":"https://avatars2.githubusercontent.com/u/22551250?v=3","gravatar_id":"","url":"https://api.github.com/users/KavajNaruj","html_url":"https://github.com/KavajNaruj","followers_url":"https://api.github.com/users/KavajNaruj/followers","following_url":"https://api.github.com/users/KavajNaruj/following{/other_user}","gists_url":"https://api.github.com/users/KavajNaruj/gists{/gist_id}","starred_url":"https://api.github.com/users/KavajNaruj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KavajNaruj/subscriptions","organizations_url":"https://api.github.com/users/KavajNaruj/orgs","repos_url":"https://api.github.com/users/KavajNaruj/repos","events_url":"https://api.github.com/users/KavajNaruj/events{/privacy}","received_events_url":"https://api.github.com/users/KavajNaruj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KavajNaruj/home-assistant","description":":house_with_garden: Open-source home automation platform running on Python 3","fork":true,"url":"https://api.github.com/repos/KavajNaruj/home-assistant","forks_url":"https://api.github.com/repos/KavajNaruj/home-assistant/forks","keys_url":"https://api.github.com/repos/KavajNaruj/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KavajNaruj/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KavajNaruj/home-assistant/teams","hooks_url":"https://api.github.com/repos/KavajNaruj/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/KavajNaruj/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/KavajNaruj/home-assistant/events","assignees_url":"https://api.github.com/repos/KavajNaruj/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/KavajNaruj/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/KavajNaruj/home-assistant/tags","blobs_url":"https://api.github.com/repos/KavajNaruj/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KavajNaruj/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KavajNaruj/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/KavajNaruj/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KavajNaruj/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/KavajNaruj/home-assistant/languages","stargazers_url":"https://api.github.com/repos/KavajNaruj/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/KavajNaruj/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/KavajNaruj/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/KavajNaruj/home-assistant/subscription","commits_url":"https://api.github.com/repos/KavajNaruj/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/KavajNaruj/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/KavajNaruj/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/KavajNaruj/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/KavajNaruj/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/KavajNaruj/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KavajNaruj/home-assistant/merges","archive_url":"https://api.github.com/repos/KavajNaruj/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KavajNaruj/home-assistant/downloads","issues_url":"https://api.github.com/repos/KavajNaruj/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/KavajNaruj/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/KavajNaruj/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/KavajNaruj/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KavajNaruj/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/KavajNaruj/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/KavajNaruj/home-assistant/deployments","created_at":"2016-09-30T20:22:02Z","updated_at":"2016-09-30T20:22:05Z","pushed_at":"2017-03-28T22:22:35Z","git_url":"git://github.com/KavajNaruj/home-assistant.git","ssh_url":"git@github.com:KavajNaruj/home-assistant.git","clone_url":"https://github.com/KavajNaruj/home-assistant.git","svn_url":"https://github.com/KavajNaruj/home-assistant","homepage":"https://home-assistant.io","size":56057,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"home-assistant:dev","ref":"dev","sha":"64174f5763927886a0417aff9709c4faf770ca63","user":{"login":"home-assistant","id":13844975,"avatar_url":"https://avatars0.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://avatars0.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":"2017-04-07T16:09:30Z","pushed_at":"2017-04-07T20:02:11Z","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":56815,"stargazers_count":6431,"watchers_count":6431,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1875,"mirror_url":null,"open_issues_count":393,"forks":1875,"open_issues":393,"watchers":6431,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/6977"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/6977"},"issue":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/6977"},"comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/6977/comments"},"review_comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/6977/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/6977/commits"},"statuses":{"href":"https://api.github.com/repos/home-assistant/home-assistant/statuses/5c08dbf2cb90d428695039ef465bf4e10fc7c878"}}}}
{"actor":{"display_login":"houndci-bot"}}