{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9115","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9115/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9115/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9115/events","html_url":"https://github.com/home-assistant/home-assistant/issues/9115","id":252578682,"number":9115,"title":"Add option to automatically delete files in pushbullet component","user":{"login":"tsvi","id":1366384,"avatar_url":"https://avatars1.githubusercontent.com/u/1366384?v=4","gravatar_id":"","url":"https://api.github.com/users/tsvi","html_url":"https://github.com/tsvi","followers_url":"https://api.github.com/users/tsvi/followers","following_url":"https://api.github.com/users/tsvi/following{/other_user}","gists_url":"https://api.github.com/users/tsvi/gists{/gist_id}","starred_url":"https://api.github.com/users/tsvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsvi/subscriptions","organizations_url":"https://api.github.com/users/tsvi/orgs","repos_url":"https://api.github.com/users/tsvi/repos","events_url":"https://api.github.com/users/tsvi/events{/privacy}","received_events_url":"https://api.github.com/users/tsvi/received_events","type":"User","site_admin":false},"labels":[{"id":562804248,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/waiting-for-reply","name":"waiting-for-reply","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-24T11:59:46Z","updated_at":"2018-03-03T00:08:53Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Make sure you are running the latest version of Home Assistant before reporting an issue.\r\n\r\nYou should only file an issue if you found a bug. Feature and enhancement requests should go in [the Feature Requests section](https://community.home-assistant.io/c/feature-requests) of our community forum:\r\n\r\n**Home Assistant release (`hass --version`):**\r\n0.51.2\r\n\r\n**Python release (`python3 --version`):**\r\n3.5.3\r\n\r\n**Component/platform:**\r\npushbullet\r\n\r\n**Description of problem:**\r\nWith the new pushbullet option for pushing files, the user can find themselves quickly running against pushbullet's free limit of 2GB. \r\n\r\n**Expected:**\r\nIn case of hitting the limit, report a \"firendly\" error.\r\nAdd an option for automatically deleting pushes after a given time limit.\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n\r\n1. Add pushbullet component\r\n2. Add automation to push a image of 2 MB every hour\r\n3. After 3 weeks hit limit\r\n\r\n**Traceback (if applicable):**\r\n```bash\r\n\r\n\r\n2017-08-24 14:15:19 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/asyncio/tasks.py\", line 241, in _step\r\n    result = coro.throw(exc)\r\n  File \"/var/opt/hass/lib/python3.5/site-packages/homeassistant/core.py\", line 1025, in _event_to_service_call\r\n    yield from service_handler.func(service_call)\r\n  File \"/var/opt/hass/lib/python3.5/site-packages/homeassistant/components/notify/__init__.py\", line 138, in async_notify_message\r\n    yield from notify_service.async_send_message(**kwargs)\r\n  File \"/usr/lib/python3.5/asyncio/futures.py\", line 380, in __iter__\r\n    yield self # This tells Task to wait for completion.\r\n  File \"/usr/lib/python3.5/asyncio/tasks.py\", line 304, in _wakeup\r\n    future.result()\r\n  File \"/usr/lib/python3.5/asyncio/futures.py\", line 293, in result\r\n    raise self._exception\r\n  File \"/usr/lib/python3.5/concurrent/futures/thread.py\", line 55, in run\r\n    result = self.fn(*self.args, **self.kwargs)\r\n  File \"/var/opt/hass/lib/python3.5/site-packages/homeassistant/components/notify/pushbullet.py\", line 98, in send_message\r\n    **filedata)\r\n  File \"/var/opt/hass/lib/python3.5/site-packages/pushbullet/pushbullet.py\", line 279, in push_file\r\n    return self._push(data)\r\n  File \"/var/opt/hass/lib/python3.5/site-packages/pushbullet/pushbullet.py\", line 309, in _push\r\n    raise PushError(r.text) pushbullet.errors.PushError: {\"error\":{\"code\":\"pushbullet_pro_required\",\"type\":\"invalid_request\",\"message\":\"Pushbullet Pro is required to make this call.\",\"cat\":\"🙀\"},\"error_code\":\"pushbullet_pro_required\"}\r\n```\r\n\r\n**Additional info:**\r\n\r\n[Limitations of pushbullet](https://www.pushbullet.com/pro)"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/370093785","html_url":"https://github.com/home-assistant/home-assistant/issues/9115#issuecomment-370093785","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/9115","id":370093785,"user":{"login":"balloobbot","id":16367972,"avatar_url":"https://avatars3.githubusercontent.com/u/16367972?v=4","gravatar_id":"","url":"https://api.github.com/users/balloobbot","html_url":"https://github.com/balloobbot","followers_url":"https://api.github.com/users/balloobbot/followers","following_url":"https://api.github.com/users/balloobbot/following{/other_user}","gists_url":"https://api.github.com/users/balloobbot/gists{/gist_id}","starred_url":"https://api.github.com/users/balloobbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloobbot/subscriptions","organizations_url":"https://api.github.com/users/balloobbot/orgs","repos_url":"https://api.github.com/users/balloobbot/repos","events_url":"https://api.github.com/users/balloobbot/events{/privacy}","received_events_url":"https://api.github.com/users/balloobbot/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T00:08:53Z","updated_at":"2018-03-03T00:08:53Z","author_association":"CONTRIBUTOR","body":"This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to [open a new one](https://github.com/home-assistant/home-assistant/issues/new) if you still experience this problem 👍"}}
{"actor":{"display_login":"balloobbot"}}