{"action":"created","comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/77489943","id":77489943,"diff_hunk":"@@ -0,0 +1,141 @@\n+\"\"\"\n+A sensor that monitors trands in other components.\n+\n+For more details about this platform, please refer to the documentation at\n+https://home-assistant.io/components/sensor.template/\n+\"\"\"\n+import logging\n+import voluptuous as vol\n+import homeassistant.helpers.config_validation as cv\n+\n+from homeassistant.components.binary_sensor import (\n+    BinarySensorDevice,\n+    ENTITY_ID_FORMAT,\n+    PLATFORM_SCHEMA,\n+    SENSOR_CLASSES_SCHEMA)\n+from homeassistant.const import (\n+    ATTR_FRIENDLY_NAME,\n+    ATTR_ENTITY_ID,\n+    CONF_SENSOR_CLASS)\n+from homeassistant.helpers.entity import generate_entity_id\n+from homeassistant.helpers.event import track_state_change\n+\n+_LOGGER = logging.getLogger(__name__)\n+CONF_SENSORS = 'sensors'\n+CONF_ATTRIBUTE = 'attribute'\n+CONF_INVERT = 'invert'\n+\n+SENSOR_SCHEMA = vol.Schema({\n+    vol.Required(ATTR_ENTITY_ID): cv.entity_id,\n+    vol.Optional(CONF_ATTRIBUTE): cv.string,\n+    vol.Optional(ATTR_FRIENDLY_NAME): cv.string,\n+    vol.Optional(CONF_INVERT, default=False): cv.boolean,\n+    vol.Optional(CONF_SENSOR_CLASS, default=None): SENSOR_CLASSES_SCHEMA\n+\n+})\n+\n+PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({\n+    vol.Required(CONF_SENSORS): vol.Schema({cv.slug: SENSOR_SCHEMA}),\n+})\n+\n+\n+# pylint: disable=unused-argument\n+def setup_platform(hass, config, add_devices, discovery_info=None):\n+    \"\"\"Setup the template sensors.\"\"\"\n+    sensors = []\n+\n+    for device, device_config in config[CONF_SENSORS].items():\n+        entity_id = device_config[ATTR_ENTITY_ID]\n+        attribute = device_config.get(CONF_ATTRIBUTE)\n+        friendly_name = device_config.get(ATTR_FRIENDLY_NAME, device)\n+        sensor_class = device_config[CONF_SENSOR_CLASS]\n+        invert = device_config[CONF_INVERT]\n+\n+        sensors.append(\n+            SensorTrend(\n+                hass,\n+                device,\n+                friendly_name,\n+                entity_id,\n+                attribute,\n+                sensor_class,\n+                invert)\n+            )\n+    if not sensors:\n+        _LOGGER.error(\"No sensors added\")\n+        return False\n+    add_devices(sensors)\n+    return True\n+\n+\n+class SensorTrend(BinarySensorDevice):\n+    \"\"\"Representation of a Template Sensor.\"\"\"\n+\n+    # pylint: disable=too-many-arguments, too-many-instance-attributes\n+    def __init__(self, hass, device_id, friendly_name,\n+                 target_entity, attribute, sensor_class, invert):\n+        \"\"\"Initialize the sensor.\"\"\"\n+        self._hass = hass\n+        self.entity_id = generate_entity_id(ENTITY_ID_FORMAT, device_id,\n+                                            hass=hass)\n+        self._name = friendly_name\n+        self._target_entity = target_entity\n+        self._attribute = attribute\n+        self._sensor_class = sensor_class\n+        self._invert = invert\n+        self._state = None\n+        self.from_state = None\n+        self.to_state = None\n+\n+        self.update()\n+\n+        def template_sensor_state_listener(entity, old_state, new_state):\n+            \"\"\"Called when the target device changes state.\"\"\"\n+            self.from_state = old_state\n+            self.to_state = new_state\n+            self.update_ha_state(True)\n+\n+        track_state_change(hass, target_entity,\n+                           template_sensor_state_listener)\n+\n+    @property\n+    def name(self):\n+        \"\"\"Return the name of the sensor.\"\"\"\n+        return self._name\n+\n+    @property\n+    def is_on(self):\n+        \"\"\"Return true if sensor is on.\"\"\"\n+        return self._state\n+\n+    @property\n+    def sensor_class(self):\n+        \"\"\"Return the sensor class of the sensor.\"\"\"\n+        return self._sensor_class\n+\n+    @property\n+    def should_poll(self):\n+        \"\"\"No polling needed.\"\"\"\n+        return False\n+\n+    def update(self):\n+        \"\"\"Get the latest data and update the states.\"\"\"\n+        if (self.from_state and self.to_state and","path":"homeassistant/components/binary_sensor/trend.py","position":123,"original_position":123,"commit_id":"5a0ca8a0bfe429748daf475c1dd584d2fa5203db","original_commit_id":"5a0ca8a0bfe429748daf475c1dd584d2fa5203db","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":"You can use a guard clause here to clean up the code a bit:\r\n\r\n```python\r\nif not self.from_state or not self.to_state …:\r\n    return\r\n```\r\n\r\nI am also wondering why you are checking for 'Unknown'. If any, you should compare to STATE_UNKNOWN from the const file.","created_at":"2016-09-05T08:59:50Z","updated_at":"2016-09-05T08:59:50Z","html_url":"https://github.com/home-assistant/home-assistant/pull/3073#discussion_r77489943","pull_request_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/3073","_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/comments/77489943"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/3073#discussion_r77489943"},"pull_request":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/3073"}}},"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/3073","id":83479835,"html_url":"https://github.com/home-assistant/home-assistant/pull/3073","diff_url":"https://github.com/home-assistant/home-assistant/pull/3073.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/3073.patch","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/3073","number":3073,"state":"open","locked":false,"title":"Simple trend sensor.","user":{"login":"pavoni","id":4487313,"avatar_url":"https://avatars.githubusercontent.com/u/4487313?v=3","gravatar_id":"","url":"https://api.github.com/users/pavoni","html_url":"https://github.com/pavoni","followers_url":"https://api.github.com/users/pavoni/followers","following_url":"https://api.github.com/users/pavoni/following{/other_user}","gists_url":"https://api.github.com/users/pavoni/gists{/gist_id}","starred_url":"https://api.github.com/users/pavoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavoni/subscriptions","organizations_url":"https://api.github.com/users/pavoni/orgs","repos_url":"https://api.github.com/users/pavoni/repos","events_url":"https://api.github.com/users/pavoni/events{/privacy}","received_events_url":"https://api.github.com/users/pavoni/received_events","type":"User","site_admin":false},"body":"**Description:**\r\nI wanted to improve some of my automations (eg the one that opens my skylight when it gets hot) by doing something different depending on whether the temperature is rising or falling.\r\n\r\nIt made me realise that this isn't currently very easy - so I thought it would be useful to have a simple sensor that will analyze the trend of other HA components.\r\n\r\n\r\n<img width=\"355\" alt=\"screen shot 2016-09-01 at 12 30 24\" src=\"https://cloud.githubusercontent.com/assets/4487313/18165961/3bc0b146-7040-11e6-94f1-03d461fddef5.png\">\r\n\r\n\r\nYou specify an entity to watch, and the binary sensor will be `true` if the numeric value is rising. You can watch a `state` - or an `attribute` of a `state`. There is also an option to invert the natural `rising` state.  \r\n\r\nNote that there isn't a state for stable - because HA doesn't send updates for unchanged states. It can take a couple of updates for the sensor to update (it needs valid numeric `from` and `to` states.\r\n\r\n**Related issue (if applicable):** fixes #\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#\r\n\r\n**Example entry for `configuration.yaml` (if applicable):**\r\n```yaml\r\nbinary_sensor:\r\n  - platform: trend\r\n    sensors:\r\n      solar_angle:\r\n        friendly_name: 'Sun rising'\r\n        entity_id: sun.sun\r\n        sensor_class: light\r\n        attribute: elevation\r\n\r\n      solar_angle_invert:\r\n        friendly_name: 'Sun setting'\r\n        entity_id: sun.sun\r\n        attribute: elevation\r\n        sensor_class: light\r\n        invert: Yes\r\n\r\n      temperature_up:\r\n        friendly_name: 'Temp increasing'\r\n        entity_id: sensor.skylight_temperature\r\n        sensor_class: heat\r\n\r\n      temperature_down:\r\n        friendly_name: 'Temp decreasing'\r\n        entity_id: sensor.skylight_temperature\r\n        sensor_class: cold\r\n        invert: Yes\r\n\r\n      power_trend:\r\n        entity_id: sensor.power_usage\r\n        friendly_name: 'Power rising'\r\n        sensor_class: power\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.io](https://github.com/home-assistant/home-assistant.io)\r\n\r\nIf code communicates with devices, web services, or a:\r\n  - [ ] 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  - [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\r\n","created_at":"2016-08-31T15:53:44Z","updated_at":"2016-09-05T08:59:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11f41f0365508ad95f1f9cdba6a8083e1494eda1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/3073/commits","review_comments_url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/3073/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/3073/comments","statuses_url":"https://api.github.com/repos/home-assistant/home-assistant/statuses/5a0ca8a0bfe429748daf475c1dd584d2fa5203db","head":{"label":"home-assistant:trend_sensor","ref":"trend_sensor","sha":"5a0ca8a0bfe429748daf475c1dd584d2fa5203db","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-09-05T07:18:30Z","pushed_at":"2016-09-05T07:49:55Z","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":77913,"stargazers_count":3990,"watchers_count":3990,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":955,"mirror_url":null,"open_issues_count":225,"forks":955,"open_issues":225,"watchers":3990,"default_branch":"dev"}},"base":{"label":"home-assistant:dev","ref":"dev","sha":"87e332c77763735832084149bde26783fa96fae8","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-09-05T07:18:30Z","pushed_at":"2016-09-05T07:49:55Z","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":77913,"stargazers_count":3990,"watchers_count":3990,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":955,"mirror_url":null,"open_issues_count":225,"forks":955,"open_issues":225,"watchers":3990,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/3073"},"html":{"href":"https://github.com/home-assistant/home-assistant/pull/3073"},"issue":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/3073"},"comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/issues/3073/comments"},"review_comments":{"href":"https://api.github.com/repos/home-assistant/home-assistant/pulls/3073/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/3073/commits"},"statuses":{"href":"https://api.github.com/repos/home-assistant/home-assistant/statuses/5a0ca8a0bfe429748daf475c1dd584d2fa5203db"}}}}
{"actor":{"display_login":"balloob"}}