{"action":"created","comment":{"url":"https://api.github.com/repos/balloob/pynetgear/pulls/comments/50626570","id":50626570,"diff_hunk":"@@ -75,6 +75,9 @@ def get_attached_devices(self):\n                 info = data[start:-1]\n \n             if len(info) < 4:\n+                if len(info) == 0:","path":"pynetgear/__init__.py","position":4,"original_position":4,"commit_id":"04381c6f1b9a2e311224c90ce77f25d470bf4ee2","original_commit_id":"04381c6f1b9a2e311224c90ce77f25d470bf4ee2","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":"Instead of nesting it, can you use `if X: … elif Y: …`","created_at":"2016-01-23T22:23:44Z","updated_at":"2016-01-23T22:23:44Z","html_url":"https://github.com/balloob/pynetgear/pull/5#discussion_r50626570","pull_request_url":"https://api.github.com/repos/balloob/pynetgear/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/balloob/pynetgear/pulls/comments/50626570"},"html":{"href":"https://github.com/balloob/pynetgear/pull/5#discussion_r50626570"},"pull_request":{"href":"https://api.github.com/repos/balloob/pynetgear/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/balloob/pynetgear/pulls/5","id":56980459,"html_url":"https://github.com/balloob/pynetgear/pull/5","diff_url":"https://github.com/balloob/pynetgear/pull/5.diff","patch_url":"https://github.com/balloob/pynetgear/pull/5.patch","issue_url":"https://api.github.com/repos/balloob/pynetgear/issues/5","number":5,"state":"open","locked":false,"title":"ignored warnings for unexpected entries to stop filling up log files","user":{"login":"digdugg","id":1303884,"avatar_url":"https://avatars.githubusercontent.com/u/1303884?v=3","gravatar_id":"","url":"https://api.github.com/users/digdugg","html_url":"https://github.com/digdugg","followers_url":"https://api.github.com/users/digdugg/followers","following_url":"https://api.github.com/users/digdugg/following{/other_user}","gists_url":"https://api.github.com/users/digdugg/gists{/gist_id}","starred_url":"https://api.github.com/users/digdugg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digdugg/subscriptions","organizations_url":"https://api.github.com/users/digdugg/orgs","repos_url":"https://api.github.com/users/digdugg/repos","events_url":"https://api.github.com/users/digdugg/events{/privacy}","received_events_url":"https://api.github.com/users/digdugg/received_events","type":"User","site_admin":false},"body":"This fixes issue #4 from filling up log files in home-assistant with warnings of Unexpected entries.","created_at":"2016-01-23T16:56:27Z","updated_at":"2016-01-23T22:23:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1daedd5cdee82295abdce82afa6e1669afdb507c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/balloob/pynetgear/pulls/5/commits","review_comments_url":"https://api.github.com/repos/balloob/pynetgear/pulls/5/comments","review_comment_url":"https://api.github.com/repos/balloob/pynetgear/pulls/comments{/number}","comments_url":"https://api.github.com/repos/balloob/pynetgear/issues/5/comments","statuses_url":"https://api.github.com/repos/balloob/pynetgear/statuses/04381c6f1b9a2e311224c90ce77f25d470bf4ee2","head":{"label":"digdugg:master","ref":"master","sha":"04381c6f1b9a2e311224c90ce77f25d470bf4ee2","user":{"login":"digdugg","id":1303884,"avatar_url":"https://avatars.githubusercontent.com/u/1303884?v=3","gravatar_id":"","url":"https://api.github.com/users/digdugg","html_url":"https://github.com/digdugg","followers_url":"https://api.github.com/users/digdugg/followers","following_url":"https://api.github.com/users/digdugg/following{/other_user}","gists_url":"https://api.github.com/users/digdugg/gists{/gist_id}","starred_url":"https://api.github.com/users/digdugg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digdugg/subscriptions","organizations_url":"https://api.github.com/users/digdugg/orgs","repos_url":"https://api.github.com/users/digdugg/repos","events_url":"https://api.github.com/users/digdugg/events{/privacy}","received_events_url":"https://api.github.com/users/digdugg/received_events","type":"User","site_admin":false},"repo":{"id":48917286,"name":"pynetgear","full_name":"digdugg/pynetgear","owner":{"login":"digdugg","id":1303884,"avatar_url":"https://avatars.githubusercontent.com/u/1303884?v=3","gravatar_id":"","url":"https://api.github.com/users/digdugg","html_url":"https://github.com/digdugg","followers_url":"https://api.github.com/users/digdugg/followers","following_url":"https://api.github.com/users/digdugg/following{/other_user}","gists_url":"https://api.github.com/users/digdugg/gists{/gist_id}","starred_url":"https://api.github.com/users/digdugg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digdugg/subscriptions","organizations_url":"https://api.github.com/users/digdugg/orgs","repos_url":"https://api.github.com/users/digdugg/repos","events_url":"https://api.github.com/users/digdugg/events{/privacy}","received_events_url":"https://api.github.com/users/digdugg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/digdugg/pynetgear","description":"Python library to control Netgear wireless routers through the SOAP-api.","fork":true,"url":"https://api.github.com/repos/digdugg/pynetgear","forks_url":"https://api.github.com/repos/digdugg/pynetgear/forks","keys_url":"https://api.github.com/repos/digdugg/pynetgear/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digdugg/pynetgear/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digdugg/pynetgear/teams","hooks_url":"https://api.github.com/repos/digdugg/pynetgear/hooks","issue_events_url":"https://api.github.com/repos/digdugg/pynetgear/issues/events{/number}","events_url":"https://api.github.com/repos/digdugg/pynetgear/events","assignees_url":"https://api.github.com/repos/digdugg/pynetgear/assignees{/user}","branches_url":"https://api.github.com/repos/digdugg/pynetgear/branches{/branch}","tags_url":"https://api.github.com/repos/digdugg/pynetgear/tags","blobs_url":"https://api.github.com/repos/digdugg/pynetgear/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digdugg/pynetgear/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digdugg/pynetgear/git/refs{/sha}","trees_url":"https://api.github.com/repos/digdugg/pynetgear/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digdugg/pynetgear/statuses/{sha}","languages_url":"https://api.github.com/repos/digdugg/pynetgear/languages","stargazers_url":"https://api.github.com/repos/digdugg/pynetgear/stargazers","contributors_url":"https://api.github.com/repos/digdugg/pynetgear/contributors","subscribers_url":"https://api.github.com/repos/digdugg/pynetgear/subscribers","subscription_url":"https://api.github.com/repos/digdugg/pynetgear/subscription","commits_url":"https://api.github.com/repos/digdugg/pynetgear/commits{/sha}","git_commits_url":"https://api.github.com/repos/digdugg/pynetgear/git/commits{/sha}","comments_url":"https://api.github.com/repos/digdugg/pynetgear/comments{/number}","issue_comment_url":"https://api.github.com/repos/digdugg/pynetgear/issues/comments{/number}","contents_url":"https://api.github.com/repos/digdugg/pynetgear/contents/{+path}","compare_url":"https://api.github.com/repos/digdugg/pynetgear/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digdugg/pynetgear/merges","archive_url":"https://api.github.com/repos/digdugg/pynetgear/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digdugg/pynetgear/downloads","issues_url":"https://api.github.com/repos/digdugg/pynetgear/issues{/number}","pulls_url":"https://api.github.com/repos/digdugg/pynetgear/pulls{/number}","milestones_url":"https://api.github.com/repos/digdugg/pynetgear/milestones{/number}","notifications_url":"https://api.github.com/repos/digdugg/pynetgear/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digdugg/pynetgear/labels{/name}","releases_url":"https://api.github.com/repos/digdugg/pynetgear/releases{/id}","deployments_url":"https://api.github.com/repos/digdugg/pynetgear/deployments","created_at":"2016-01-02T17:11:48Z","updated_at":"2016-01-23T16:55:39Z","pushed_at":"2016-01-23T16:55:38Z","git_url":"git://github.com/digdugg/pynetgear.git","ssh_url":"git@github.com:digdugg/pynetgear.git","clone_url":"https://github.com/digdugg/pynetgear.git","svn_url":"https://github.com/digdugg/pynetgear","homepage":null,"size":18,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"balloob:master","ref":"master","sha":"dd01473bd3c8d972d4109a93240e725e27ff6360","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},"repo":{"id":15182559,"name":"pynetgear","full_name":"balloob/pynetgear","owner":{"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},"private":false,"html_url":"https://github.com/balloob/pynetgear","description":"Python library to control Netgear wireless routers through the SOAP-api.","fork":false,"url":"https://api.github.com/repos/balloob/pynetgear","forks_url":"https://api.github.com/repos/balloob/pynetgear/forks","keys_url":"https://api.github.com/repos/balloob/pynetgear/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balloob/pynetgear/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balloob/pynetgear/teams","hooks_url":"https://api.github.com/repos/balloob/pynetgear/hooks","issue_events_url":"https://api.github.com/repos/balloob/pynetgear/issues/events{/number}","events_url":"https://api.github.com/repos/balloob/pynetgear/events","assignees_url":"https://api.github.com/repos/balloob/pynetgear/assignees{/user}","branches_url":"https://api.github.com/repos/balloob/pynetgear/branches{/branch}","tags_url":"https://api.github.com/repos/balloob/pynetgear/tags","blobs_url":"https://api.github.com/repos/balloob/pynetgear/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balloob/pynetgear/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balloob/pynetgear/git/refs{/sha}","trees_url":"https://api.github.com/repos/balloob/pynetgear/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balloob/pynetgear/statuses/{sha}","languages_url":"https://api.github.com/repos/balloob/pynetgear/languages","stargazers_url":"https://api.github.com/repos/balloob/pynetgear/stargazers","contributors_url":"https://api.github.com/repos/balloob/pynetgear/contributors","subscribers_url":"https://api.github.com/repos/balloob/pynetgear/subscribers","subscription_url":"https://api.github.com/repos/balloob/pynetgear/subscription","commits_url":"https://api.github.com/repos/balloob/pynetgear/commits{/sha}","git_commits_url":"https://api.github.com/repos/balloob/pynetgear/git/commits{/sha}","comments_url":"https://api.github.com/repos/balloob/pynetgear/comments{/number}","issue_comment_url":"https://api.github.com/repos/balloob/pynetgear/issues/comments{/number}","contents_url":"https://api.github.com/repos/balloob/pynetgear/contents/{+path}","compare_url":"https://api.github.com/repos/balloob/pynetgear/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balloob/pynetgear/merges","archive_url":"https://api.github.com/repos/balloob/pynetgear/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balloob/pynetgear/downloads","issues_url":"https://api.github.com/repos/balloob/pynetgear/issues{/number}","pulls_url":"https://api.github.com/repos/balloob/pynetgear/pulls{/number}","milestones_url":"https://api.github.com/repos/balloob/pynetgear/milestones{/number}","notifications_url":"https://api.github.com/repos/balloob/pynetgear/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balloob/pynetgear/labels{/name}","releases_url":"https://api.github.com/repos/balloob/pynetgear/releases{/id}","deployments_url":"https://api.github.com/repos/balloob/pynetgear/deployments","created_at":"2013-12-14T08:34:52Z","updated_at":"2016-01-04T13:33:42Z","pushed_at":"2016-01-23T16:56:27Z","git_url":"git://github.com/balloob/pynetgear.git","ssh_url":"git@github.com:balloob/pynetgear.git","clone_url":"https://github.com/balloob/pynetgear.git","svn_url":"https://github.com/balloob/pynetgear","homepage":null,"size":17,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/balloob/pynetgear/pulls/5"},"html":{"href":"https://github.com/balloob/pynetgear/pull/5"},"issue":{"href":"https://api.github.com/repos/balloob/pynetgear/issues/5"},"comments":{"href":"https://api.github.com/repos/balloob/pynetgear/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/balloob/pynetgear/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/balloob/pynetgear/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/balloob/pynetgear/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/balloob/pynetgear/statuses/04381c6f1b9a2e311224c90ce77f25d470bf4ee2"}}}}