{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/17050","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/17050/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/17050/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/17050/events","html_url":"https://github.com/home-assistant/home-assistant/pull/17050","id":365607616,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NDg4MjM1","number":17050,"title":"MJPEG Camera Log Filter Fixes","user":{"login":"cgarwood","id":7545841,"node_id":"MDQ6VXNlcjc1NDU4NDE=","avatar_url":"https://avatars1.githubusercontent.com/u/7545841?v=4","gravatar_id":"","url":"https://api.github.com/users/cgarwood","html_url":"https://github.com/cgarwood","followers_url":"https://api.github.com/users/cgarwood/followers","following_url":"https://api.github.com/users/cgarwood/following{/other_user}","gists_url":"https://api.github.com/users/cgarwood/gists{/gist_id}","starred_url":"https://api.github.com/users/cgarwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgarwood/subscriptions","organizations_url":"https://api.github.com/users/cgarwood/orgs","repos_url":"https://api.github.com/users/cgarwood/repos","events_url":"https://api.github.com/users/cgarwood/events{/privacy}","received_events_url":"https://api.github.com/users/cgarwood/received_events","type":"User","site_admin":false},"labels":[{"id":527871105,"node_id":"MDU6TGFiZWw1Mjc4NzExMDU=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/cla-signed","name":"cla-signed","color":"008000","default":false},{"id":955422305,"node_id":"MDU6TGFiZWw5NTU0MjIzMDU=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/in%20progress","name":"in progress","color":"ededed","default":false},{"id":526185915,"node_id":"MDU6TGFiZWw1MjYxODU5MTU=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/platform:%20camera.mjpeg","name":"platform: camera.mjpeg","color":"ededed","default":false},{"id":832964196,"node_id":"MDU6TGFiZWw4MzI5NjQxOTY=","url":"https://api.github.com/repos/home-assistant/home-assistant/labels/small-pr","name":"small-pr","color":"e5bd7e","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-01T19:27:22Z","updated_at":"2018-10-01T19:57:12Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/17050","html_url":"https://github.com/home-assistant/home-assistant/pull/17050","diff_url":"https://github.com/home-assistant/home-assistant/pull/17050.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/17050.patch"},"body":"## Description:\r\nAddress comments brought up by balloob in #17042 after it was merged.\r\n\r\nMoved the addFilter function to setup_platform and added a check to make sure it only gets added once, instead of getting duplicated for every mjpeg camera in the system.\r\n\r\n**Related issue (if applicable):** fN/A\r\n\r\n**Pull request in [home-assistant.io](https://github.com/home-assistant/home-assistant.io) with documentation (if applicable):** N/A\r\n\r\n## Example entry for `configuration.yaml` (if applicable):\r\n```yaml\r\ncamera:\r\n  - platform: mjpeg\r\n    name: Driveway Cam\r\n    mjpeg_url: !secret driveway_cam\r\n```\r\n\r\n## Checklist:\r\n  - [x] The code change is tested and works locally.\r\n  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/426041658","html_url":"https://github.com/home-assistant/home-assistant/pull/17050#issuecomment-426041658","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/17050","id":426041658,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjA0MTY1OA==","user":{"login":"cgarwood","id":7545841,"node_id":"MDQ6VXNlcjc1NDU4NDE=","avatar_url":"https://avatars1.githubusercontent.com/u/7545841?v=4","gravatar_id":"","url":"https://api.github.com/users/cgarwood","html_url":"https://github.com/cgarwood","followers_url":"https://api.github.com/users/cgarwood/followers","following_url":"https://api.github.com/users/cgarwood/following{/other_user}","gists_url":"https://api.github.com/users/cgarwood/gists{/gist_id}","starred_url":"https://api.github.com/users/cgarwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgarwood/subscriptions","organizations_url":"https://api.github.com/users/cgarwood/orgs","repos_url":"https://api.github.com/users/cgarwood/repos","events_url":"https://api.github.com/users/cgarwood/events{/privacy}","received_events_url":"https://api.github.com/users/cgarwood/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T19:57:12Z","updated_at":"2018-10-01T19:57:12Z","author_association":"CONTRIBUTOR","body":"argh, git.  https://xkcd.com/1597/ - trying to clean everything up."}}
{"actor":{"display_login":"cgarwood"}}