{"action":"created","comment":{"url":"https://api.github.com/repos/balloob/home-assistant/pulls/comments/51365048","id":51365048,"diff_hunk":"@@ -31,9 +31,22 @@\n \n MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)\n \n+SERVICE_TO_METHOD = {\n+    SERVICE_LOCK: 'lock',\n+    SERVICE_UNLOCK: 'unlock'\n+}\n+\n+ATTR_CODE = 'code'\n+ATTR_CODE_FORMAT = 'code_format'\n+\n+ATTR_TO_PROPERTY = [","path":"homeassistant/components/lock/__init__.py","position":21,"original_position":21,"commit_id":"a47acafa3d7639de4cb20e335c6315c54ab8bd94","original_commit_id":"a47acafa3d7639de4cb20e335c6315c54ab8bd94","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":"This does not seem to be used.","created_at":"2016-01-31T18:40:21Z","updated_at":"2016-01-31T18:40:21Z","html_url":"https://github.com/balloob/home-assistant/pull/1068#discussion_r51365048","pull_request_url":"https://api.github.com/repos/balloob/home-assistant/pulls/1068","_links":{"self":{"href":"https://api.github.com/repos/balloob/home-assistant/pulls/comments/51365048"},"html":{"href":"https://github.com/balloob/home-assistant/pull/1068#discussion_r51365048"},"pull_request":{"href":"https://api.github.com/repos/balloob/home-assistant/pulls/1068"}}},"pull_request":{"url":"https://api.github.com/repos/balloob/home-assistant/pulls/1068","id":57775696,"html_url":"https://github.com/balloob/home-assistant/pull/1068","diff_url":"https://github.com/balloob/home-assistant/pull/1068.diff","patch_url":"https://github.com/balloob/home-assistant/pull/1068.patch","issue_url":"https://api.github.com/repos/balloob/home-assistant/issues/1068","number":1068,"state":"open","locked":false,"title":"Support for locks connected via verisure module.","user":{"login":"turbokongen","id":16622752,"avatar_url":"https://avatars.githubusercontent.com/u/16622752?v=3","gravatar_id":"","url":"https://api.github.com/users/turbokongen","html_url":"https://github.com/turbokongen","followers_url":"https://api.github.com/users/turbokongen/followers","following_url":"https://api.github.com/users/turbokongen/following{/other_user}","gists_url":"https://api.github.com/users/turbokongen/gists{/gist_id}","starred_url":"https://api.github.com/users/turbokongen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turbokongen/subscriptions","organizations_url":"https://api.github.com/users/turbokongen/orgs","repos_url":"https://api.github.com/users/turbokongen/repos","events_url":"https://api.github.com/users/turbokongen/events{/privacy}","received_events_url":"https://api.github.com/users/turbokongen/received_events","type":"User","site_admin":false},"body":"This PR adds support for locks connected via the verisure module.\r\nFor now, there is still a toggle button on the info card, but the functionality of the lock works.\r\nWith this system user has to input a code to lock or unlock the doorlock, so the toggle button doesen't do anything.\r\nRequires latest python-verisure to work.\r\n\r\nSomebody with wink lock(s) need to test this also, to make sure it's not broken.","created_at":"2016-01-31T18:21:52Z","updated_at":"2016-01-31T18:40:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e887af74e827e93b0c2b055faf36122eed76748","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/balloob/home-assistant/pulls/1068/commits","review_comments_url":"https://api.github.com/repos/balloob/home-assistant/pulls/1068/comments","review_comment_url":"https://api.github.com/repos/balloob/home-assistant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/balloob/home-assistant/issues/1068/comments","statuses_url":"https://api.github.com/repos/balloob/home-assistant/statuses/a47acafa3d7639de4cb20e335c6315c54ab8bd94","head":{"label":"turbokongen:dev","ref":"dev","sha":"a47acafa3d7639de4cb20e335c6315c54ab8bd94","user":{"login":"turbokongen","id":16622752,"avatar_url":"https://avatars.githubusercontent.com/u/16622752?v=3","gravatar_id":"","url":"https://api.github.com/users/turbokongen","html_url":"https://github.com/turbokongen","followers_url":"https://api.github.com/users/turbokongen/followers","following_url":"https://api.github.com/users/turbokongen/following{/other_user}","gists_url":"https://api.github.com/users/turbokongen/gists{/gist_id}","starred_url":"https://api.github.com/users/turbokongen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turbokongen/subscriptions","organizations_url":"https://api.github.com/users/turbokongen/orgs","repos_url":"https://api.github.com/users/turbokongen/repos","events_url":"https://api.github.com/users/turbokongen/events{/privacy}","received_events_url":"https://api.github.com/users/turbokongen/received_events","type":"User","site_admin":false},"repo":{"id":50231140,"name":"home-assistant","full_name":"turbokongen/home-assistant","owner":{"login":"turbokongen","id":16622752,"avatar_url":"https://avatars.githubusercontent.com/u/16622752?v=3","gravatar_id":"","url":"https://api.github.com/users/turbokongen","html_url":"https://github.com/turbokongen","followers_url":"https://api.github.com/users/turbokongen/followers","following_url":"https://api.github.com/users/turbokongen/following{/other_user}","gists_url":"https://api.github.com/users/turbokongen/gists{/gist_id}","starred_url":"https://api.github.com/users/turbokongen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turbokongen/subscriptions","organizations_url":"https://api.github.com/users/turbokongen/orgs","repos_url":"https://api.github.com/users/turbokongen/repos","events_url":"https://api.github.com/users/turbokongen/events{/privacy}","received_events_url":"https://api.github.com/users/turbokongen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/turbokongen/home-assistant","description":"Open-source home automation platform running on Python 3","fork":true,"url":"https://api.github.com/repos/turbokongen/home-assistant","forks_url":"https://api.github.com/repos/turbokongen/home-assistant/forks","keys_url":"https://api.github.com/repos/turbokongen/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turbokongen/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turbokongen/home-assistant/teams","hooks_url":"https://api.github.com/repos/turbokongen/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/turbokongen/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/turbokongen/home-assistant/events","assignees_url":"https://api.github.com/repos/turbokongen/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/turbokongen/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/turbokongen/home-assistant/tags","blobs_url":"https://api.github.com/repos/turbokongen/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turbokongen/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turbokongen/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/turbokongen/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turbokongen/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/turbokongen/home-assistant/languages","stargazers_url":"https://api.github.com/repos/turbokongen/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/turbokongen/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/turbokongen/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/turbokongen/home-assistant/subscription","commits_url":"https://api.github.com/repos/turbokongen/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/turbokongen/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/turbokongen/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/turbokongen/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/turbokongen/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/turbokongen/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turbokongen/home-assistant/merges","archive_url":"https://api.github.com/repos/turbokongen/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turbokongen/home-assistant/downloads","issues_url":"https://api.github.com/repos/turbokongen/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/turbokongen/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/turbokongen/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/turbokongen/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turbokongen/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/turbokongen/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/turbokongen/home-assistant/deployments","created_at":"2016-01-23T08:55:09Z","updated_at":"2016-01-23T08:55:11Z","pushed_at":"2016-01-31T18:36:48Z","git_url":"git://github.com/turbokongen/home-assistant.git","ssh_url":"git@github.com:turbokongen/home-assistant.git","clone_url":"https://github.com/turbokongen/home-assistant.git","svn_url":"https://github.com/turbokongen/home-assistant","homepage":"https://home-assistant.io","size":38213,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"balloob:dev","ref":"dev","sha":"6a4b63f807c6dd22fae8f509f40ff4e4c9332b99","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":12888993,"name":"home-assistant","full_name":"balloob/home-assistant","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/home-assistant","description":":house_with_garden: Open-source home automation platform running on Python 3","fork":false,"url":"https://api.github.com/repos/balloob/home-assistant","forks_url":"https://api.github.com/repos/balloob/home-assistant/forks","keys_url":"https://api.github.com/repos/balloob/home-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balloob/home-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balloob/home-assistant/teams","hooks_url":"https://api.github.com/repos/balloob/home-assistant/hooks","issue_events_url":"https://api.github.com/repos/balloob/home-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/balloob/home-assistant/events","assignees_url":"https://api.github.com/repos/balloob/home-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/balloob/home-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/balloob/home-assistant/tags","blobs_url":"https://api.github.com/repos/balloob/home-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balloob/home-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balloob/home-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/balloob/home-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balloob/home-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/balloob/home-assistant/languages","stargazers_url":"https://api.github.com/repos/balloob/home-assistant/stargazers","contributors_url":"https://api.github.com/repos/balloob/home-assistant/contributors","subscribers_url":"https://api.github.com/repos/balloob/home-assistant/subscribers","subscription_url":"https://api.github.com/repos/balloob/home-assistant/subscription","commits_url":"https://api.github.com/repos/balloob/home-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/balloob/home-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/balloob/home-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/balloob/home-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/balloob/home-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/balloob/home-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balloob/home-assistant/merges","archive_url":"https://api.github.com/repos/balloob/home-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balloob/home-assistant/downloads","issues_url":"https://api.github.com/repos/balloob/home-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/balloob/home-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/balloob/home-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/balloob/home-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balloob/home-assistant/labels{/name}","releases_url":"https://api.github.com/repos/balloob/home-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/balloob/home-assistant/deployments","created_at":"2013-09-17T07:29:48Z","updated_at":"2016-01-31T17:49:14Z","pushed_at":"2016-01-31T18:36:48Z","git_url":"git://github.com/balloob/home-assistant.git","ssh_url":"git@github.com:balloob/home-assistant.git","clone_url":"https://github.com/balloob/home-assistant.git","svn_url":"https://github.com/balloob/home-assistant","homepage":"https://home-assistant.io","size":39797,"stargazers_count":2660,"watchers_count":2660,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":409,"mirror_url":null,"open_issues_count":133,"forks":409,"open_issues":133,"watchers":2660,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/balloob/home-assistant/pulls/1068"},"html":{"href":"https://github.com/balloob/home-assistant/pull/1068"},"issue":{"href":"https://api.github.com/repos/balloob/home-assistant/issues/1068"},"comments":{"href":"https://api.github.com/repos/balloob/home-assistant/issues/1068/comments"},"review_comments":{"href":"https://api.github.com/repos/balloob/home-assistant/pulls/1068/comments"},"review_comment":{"href":"https://api.github.com/repos/balloob/home-assistant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/balloob/home-assistant/pulls/1068/commits"},"statuses":{"href":"https://api.github.com/repos/balloob/home-assistant/statuses/a47acafa3d7639de4cb20e335c6315c54ab8bd94"}}}}