{"action":"created","comment":{"url":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/comments/51189328","id":51189328,"diff_hunk":"@@ -109,11 +109,11 @@ def scan(self, delay=5):\n                 answer = self._get_answer(sequence)\n                 dev_id = self.protocol.decode_dev_id(answer)\n                 self.logger.info(\"device ID at index %d: %s\", i, dev_id)\n-                dev_ids.append(dev_id)\n+                devices.append({\"index\": i, \"zigbee_id\": dev_id})","path":"pyzigbee/gateways/gateway.py","position":23,"original_position":23,"commit_id":"4945b85087d3ecfca2aa5a5703c0ce1a8c5250a1","original_commit_id":"4945b85087d3ecfca2aa5a5703c0ce1a8c5250a1","user":{"login":"pierreroth64","id":4201248,"avatar_url":"https://avatars.githubusercontent.com/u/4201248?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreroth64","html_url":"https://github.com/pierreroth64","followers_url":"https://api.github.com/users/pierreroth64/followers","following_url":"https://api.github.com/users/pierreroth64/following{/other_user}","gists_url":"https://api.github.com/users/pierreroth64/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreroth64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreroth64/subscriptions","organizations_url":"https://api.github.com/users/pierreroth64/orgs","repos_url":"https://api.github.com/users/pierreroth64/repos","events_url":"https://api.github.com/users/pierreroth64/events{/privacy}","received_events_url":"https://api.github.com/users/pierreroth64/received_events","type":"User","site_admin":false},"body":"Why do you need to store the index?","created_at":"2016-01-28T21:21:09Z","updated_at":"2016-01-28T21:21:09Z","html_url":"https://github.com/pierreroth64/pyzigbee/pull/14#discussion_r51189328","pull_request_url":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/comments/51189328"},"html":{"href":"https://github.com/pierreroth64/pyzigbee/pull/14#discussion_r51189328"},"pull_request":{"href":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/14","id":57368173,"html_url":"https://github.com/pierreroth64/pyzigbee/pull/14","diff_url":"https://github.com/pierreroth64/pyzigbee/pull/14.diff","patch_url":"https://github.com/pierreroth64/pyzigbee/pull/14.patch","issue_url":"https://api.github.com/repos/pierreroth64/pyzigbee/issues/14","number":14,"state":"open","locked":false,"title":"Corrected scan function.","user":{"login":"Jicehef","id":16561463,"avatar_url":"https://avatars.githubusercontent.com/u/16561463?v=3","gravatar_id":"","url":"https://api.github.com/users/Jicehef","html_url":"https://github.com/Jicehef","followers_url":"https://api.github.com/users/Jicehef/followers","following_url":"https://api.github.com/users/Jicehef/following{/other_user}","gists_url":"https://api.github.com/users/Jicehef/gists{/gist_id}","starred_url":"https://api.github.com/users/Jicehef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jicehef/subscriptions","organizations_url":"https://api.github.com/users/Jicehef/orgs","repos_url":"https://api.github.com/users/Jicehef/repos","events_url":"https://api.github.com/users/Jicehef/events{/privacy}","received_events_url":"https://api.github.com/users/Jicehef/received_events","type":"User","site_admin":false},"body":"Scan function correction\r\n===================\r\nThe openwebnet command has been changed.\r\n\r\nThe previously used sequence \"*#13**66#%d##\" would lead tom many answers for a single device, as it is a product configuration request.\r\n\r\nThe new sequence  \"*#13**73#%d##\" is a product information request whose answer is a single line.\r\n\r\nThe rx sequence has also been introduced.\r\n\r\nNew pyzigbeesh command\r\n=====================\r\n\r\nThe drv_receive command has been created. It is equivalent to the receive command but it does not open/close the gateway.\r\nit makes easier to view sequences:\r\n(pyzigbeesh) drv_open\r\n(pyzigbeesh) drv_write *#13**66#2##\r\n(pyzigbeesh) drv_receive\r\n*#13*8659261800#9*66#2*0##\r\n(pyzigbeesh) drv_receive\r\n*#13*8659261800#9*66#2*0##\r\n(pyzigbeesh) drv_receive\r\n*#13*8659261801#9*66#2*277##\r\n(pyzigbeesh) drv_receive\r\n*#13*8659261802#9*66#2*1284##\r\n(pyzigbeesh) drv_receive\r\n*#*1##\r\n(pyzigbeesh) drv_close\r\n(pyzigbeesh) \r\n","created_at":"2016-01-27T14:39:03Z","updated_at":"2016-01-28T21:21:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eaa131b0c6ada68cc8a24068a3d9f470c8d248ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/14/commits","review_comments_url":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/14/comments","review_comment_url":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pierreroth64/pyzigbee/issues/14/comments","statuses_url":"https://api.github.com/repos/pierreroth64/pyzigbee/statuses/4945b85087d3ecfca2aa5a5703c0ce1a8c5250a1","head":{"label":"Jicehef:master","ref":"master","sha":"4945b85087d3ecfca2aa5a5703c0ce1a8c5250a1","user":{"login":"Jicehef","id":16561463,"avatar_url":"https://avatars.githubusercontent.com/u/16561463?v=3","gravatar_id":"","url":"https://api.github.com/users/Jicehef","html_url":"https://github.com/Jicehef","followers_url":"https://api.github.com/users/Jicehef/followers","following_url":"https://api.github.com/users/Jicehef/following{/other_user}","gists_url":"https://api.github.com/users/Jicehef/gists{/gist_id}","starred_url":"https://api.github.com/users/Jicehef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jicehef/subscriptions","organizations_url":"https://api.github.com/users/Jicehef/orgs","repos_url":"https://api.github.com/users/Jicehef/repos","events_url":"https://api.github.com/users/Jicehef/events{/privacy}","received_events_url":"https://api.github.com/users/Jicehef/received_events","type":"User","site_admin":false},"repo":{"id":50508118,"name":"pyzigbee","full_name":"Jicehef/pyzigbee","owner":{"login":"Jicehef","id":16561463,"avatar_url":"https://avatars.githubusercontent.com/u/16561463?v=3","gravatar_id":"","url":"https://api.github.com/users/Jicehef","html_url":"https://github.com/Jicehef","followers_url":"https://api.github.com/users/Jicehef/followers","following_url":"https://api.github.com/users/Jicehef/following{/other_user}","gists_url":"https://api.github.com/users/Jicehef/gists{/gist_id}","starred_url":"https://api.github.com/users/Jicehef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jicehef/subscriptions","organizations_url":"https://api.github.com/users/Jicehef/orgs","repos_url":"https://api.github.com/users/Jicehef/repos","events_url":"https://api.github.com/users/Jicehef/events{/privacy}","received_events_url":"https://api.github.com/users/Jicehef/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jicehef/pyzigbee","description":"Python library to deal with zigbee gateways from Legrand","fork":true,"url":"https://api.github.com/repos/Jicehef/pyzigbee","forks_url":"https://api.github.com/repos/Jicehef/pyzigbee/forks","keys_url":"https://api.github.com/repos/Jicehef/pyzigbee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jicehef/pyzigbee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jicehef/pyzigbee/teams","hooks_url":"https://api.github.com/repos/Jicehef/pyzigbee/hooks","issue_events_url":"https://api.github.com/repos/Jicehef/pyzigbee/issues/events{/number}","events_url":"https://api.github.com/repos/Jicehef/pyzigbee/events","assignees_url":"https://api.github.com/repos/Jicehef/pyzigbee/assignees{/user}","branches_url":"https://api.github.com/repos/Jicehef/pyzigbee/branches{/branch}","tags_url":"https://api.github.com/repos/Jicehef/pyzigbee/tags","blobs_url":"https://api.github.com/repos/Jicehef/pyzigbee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jicehef/pyzigbee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jicehef/pyzigbee/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jicehef/pyzigbee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jicehef/pyzigbee/statuses/{sha}","languages_url":"https://api.github.com/repos/Jicehef/pyzigbee/languages","stargazers_url":"https://api.github.com/repos/Jicehef/pyzigbee/stargazers","contributors_url":"https://api.github.com/repos/Jicehef/pyzigbee/contributors","subscribers_url":"https://api.github.com/repos/Jicehef/pyzigbee/subscribers","subscription_url":"https://api.github.com/repos/Jicehef/pyzigbee/subscription","commits_url":"https://api.github.com/repos/Jicehef/pyzigbee/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jicehef/pyzigbee/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jicehef/pyzigbee/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jicehef/pyzigbee/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jicehef/pyzigbee/contents/{+path}","compare_url":"https://api.github.com/repos/Jicehef/pyzigbee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jicehef/pyzigbee/merges","archive_url":"https://api.github.com/repos/Jicehef/pyzigbee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jicehef/pyzigbee/downloads","issues_url":"https://api.github.com/repos/Jicehef/pyzigbee/issues{/number}","pulls_url":"https://api.github.com/repos/Jicehef/pyzigbee/pulls{/number}","milestones_url":"https://api.github.com/repos/Jicehef/pyzigbee/milestones{/number}","notifications_url":"https://api.github.com/repos/Jicehef/pyzigbee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jicehef/pyzigbee/labels{/name}","releases_url":"https://api.github.com/repos/Jicehef/pyzigbee/releases{/id}","deployments_url":"https://api.github.com/repos/Jicehef/pyzigbee/deployments","created_at":"2016-01-27T13:11:34Z","updated_at":"2016-01-27T13:11:35Z","pushed_at":"2016-01-28T09:59:38Z","git_url":"git://github.com/Jicehef/pyzigbee.git","ssh_url":"git@github.com:Jicehef/pyzigbee.git","clone_url":"https://github.com/Jicehef/pyzigbee.git","svn_url":"https://github.com/Jicehef/pyzigbee","homepage":"","size":3806,"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":"pierreroth64:master","ref":"master","sha":"b46f0d80c1c4387a0d278f96e961cbfad93b1fab","user":{"login":"pierreroth64","id":4201248,"avatar_url":"https://avatars.githubusercontent.com/u/4201248?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreroth64","html_url":"https://github.com/pierreroth64","followers_url":"https://api.github.com/users/pierreroth64/followers","following_url":"https://api.github.com/users/pierreroth64/following{/other_user}","gists_url":"https://api.github.com/users/pierreroth64/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreroth64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreroth64/subscriptions","organizations_url":"https://api.github.com/users/pierreroth64/orgs","repos_url":"https://api.github.com/users/pierreroth64/repos","events_url":"https://api.github.com/users/pierreroth64/events{/privacy}","received_events_url":"https://api.github.com/users/pierreroth64/received_events","type":"User","site_admin":false},"repo":{"id":36368095,"name":"pyzigbee","full_name":"pierreroth64/pyzigbee","owner":{"login":"pierreroth64","id":4201248,"avatar_url":"https://avatars.githubusercontent.com/u/4201248?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreroth64","html_url":"https://github.com/pierreroth64","followers_url":"https://api.github.com/users/pierreroth64/followers","following_url":"https://api.github.com/users/pierreroth64/following{/other_user}","gists_url":"https://api.github.com/users/pierreroth64/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreroth64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreroth64/subscriptions","organizations_url":"https://api.github.com/users/pierreroth64/orgs","repos_url":"https://api.github.com/users/pierreroth64/repos","events_url":"https://api.github.com/users/pierreroth64/events{/privacy}","received_events_url":"https://api.github.com/users/pierreroth64/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pierreroth64/pyzigbee","description":"Python library to deal with zigbee gateways from Legrand","fork":false,"url":"https://api.github.com/repos/pierreroth64/pyzigbee","forks_url":"https://api.github.com/repos/pierreroth64/pyzigbee/forks","keys_url":"https://api.github.com/repos/pierreroth64/pyzigbee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pierreroth64/pyzigbee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pierreroth64/pyzigbee/teams","hooks_url":"https://api.github.com/repos/pierreroth64/pyzigbee/hooks","issue_events_url":"https://api.github.com/repos/pierreroth64/pyzigbee/issues/events{/number}","events_url":"https://api.github.com/repos/pierreroth64/pyzigbee/events","assignees_url":"https://api.github.com/repos/pierreroth64/pyzigbee/assignees{/user}","branches_url":"https://api.github.com/repos/pierreroth64/pyzigbee/branches{/branch}","tags_url":"https://api.github.com/repos/pierreroth64/pyzigbee/tags","blobs_url":"https://api.github.com/repos/pierreroth64/pyzigbee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pierreroth64/pyzigbee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pierreroth64/pyzigbee/git/refs{/sha}","trees_url":"https://api.github.com/repos/pierreroth64/pyzigbee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pierreroth64/pyzigbee/statuses/{sha}","languages_url":"https://api.github.com/repos/pierreroth64/pyzigbee/languages","stargazers_url":"https://api.github.com/repos/pierreroth64/pyzigbee/stargazers","contributors_url":"https://api.github.com/repos/pierreroth64/pyzigbee/contributors","subscribers_url":"https://api.github.com/repos/pierreroth64/pyzigbee/subscribers","subscription_url":"https://api.github.com/repos/pierreroth64/pyzigbee/subscription","commits_url":"https://api.github.com/repos/pierreroth64/pyzigbee/commits{/sha}","git_commits_url":"https://api.github.com/repos/pierreroth64/pyzigbee/git/commits{/sha}","comments_url":"https://api.github.com/repos/pierreroth64/pyzigbee/comments{/number}","issue_comment_url":"https://api.github.com/repos/pierreroth64/pyzigbee/issues/comments{/number}","contents_url":"https://api.github.com/repos/pierreroth64/pyzigbee/contents/{+path}","compare_url":"https://api.github.com/repos/pierreroth64/pyzigbee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pierreroth64/pyzigbee/merges","archive_url":"https://api.github.com/repos/pierreroth64/pyzigbee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pierreroth64/pyzigbee/downloads","issues_url":"https://api.github.com/repos/pierreroth64/pyzigbee/issues{/number}","pulls_url":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls{/number}","milestones_url":"https://api.github.com/repos/pierreroth64/pyzigbee/milestones{/number}","notifications_url":"https://api.github.com/repos/pierreroth64/pyzigbee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pierreroth64/pyzigbee/labels{/name}","releases_url":"https://api.github.com/repos/pierreroth64/pyzigbee/releases{/id}","deployments_url":"https://api.github.com/repos/pierreroth64/pyzigbee/deployments","created_at":"2015-05-27T13:20:34Z","updated_at":"2016-01-12T09:24:56Z","pushed_at":"2016-01-28T09:59:39Z","git_url":"git://github.com/pierreroth64/pyzigbee.git","ssh_url":"git@github.com:pierreroth64/pyzigbee.git","clone_url":"https://github.com/pierreroth64/pyzigbee.git","svn_url":"https://github.com/pierreroth64/pyzigbee","homepage":"","size":3789,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/14"},"html":{"href":"https://github.com/pierreroth64/pyzigbee/pull/14"},"issue":{"href":"https://api.github.com/repos/pierreroth64/pyzigbee/issues/14"},"comments":{"href":"https://api.github.com/repos/pierreroth64/pyzigbee/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pierreroth64/pyzigbee/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/pierreroth64/pyzigbee/statuses/4945b85087d3ecfca2aa5a5703c0ce1a8c5250a1"}}}}