{"action":"created","comment":{"url":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/comments/195933587","pull_request_review_id":129393631,"id":195933587,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTkzMzU4Nw==","diff_hunk":"@@ -78,6 +84,20 @@ def is_variable_color_temp(self) -> bool:\n         \"\"\"\n         return bool(self.sys_info['is_variable_color_temp'])\n \n+    @property\n+    def valid_temperature_range(self) -> Tuple[int, int]:\n+        \"\"\"\n+        Returns the white temperature range (in Kelvin)\n+        depending on the bulb model\n+\n+        :return: White temperature range in Kelvin (minimun, maximum)\n+        :rtype: tuple\n+        \"\"\"\n+        for model, temp_range in TPLINK_KELVIN.items():\n+            if re.match(model, self.sys_info['model']):\n+                return temp_range\n+        return False","path":"pyHS100/smartbulb.py","position":29,"original_position":29,"commit_id":"b331c41d88437fc176d0087dce2dfa5b0071a037","original_commit_id":"b331c41d88437fc176d0087dce2dfa5b0071a037","user":{"login":"rytilahti","id":3705853,"node_id":"MDQ6VXNlcjM3MDU4NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/3705853?v=4","gravatar_id":"","url":"https://api.github.com/users/rytilahti","html_url":"https://github.com/rytilahti","followers_url":"https://api.github.com/users/rytilahti/followers","following_url":"https://api.github.com/users/rytilahti/following{/other_user}","gists_url":"https://api.github.com/users/rytilahti/gists{/gist_id}","starred_url":"https://api.github.com/users/rytilahti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rytilahti/subscriptions","organizations_url":"https://api.github.com/users/rytilahti/orgs","repos_url":"https://api.github.com/users/rytilahti/repos","events_url":"https://api.github.com/users/rytilahti/events{/privacy}","received_events_url":"https://api.github.com/users/rytilahti/received_events","type":"User","site_admin":false},"body":"Please return (0, 0) instead of False (as `-> Tuple[int, int]` waits for a tuple and it's better not to make confusion between types).","created_at":"2018-06-17T15:51:52Z","updated_at":"2018-06-17T15:51:52Z","html_url":"https://github.com/GadgetReactor/pyHS100/pull/122#discussion_r195933587","pull_request_url":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/122","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/comments/195933587"},"html":{"href":"https://github.com/GadgetReactor/pyHS100/pull/122#discussion_r195933587"},"pull_request":{"href":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/122"}}},"pull_request":{"url":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/122","id":195382306,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MzgyMzA2","html_url":"https://github.com/GadgetReactor/pyHS100/pull/122","diff_url":"https://github.com/GadgetReactor/pyHS100/pull/122.diff","patch_url":"https://github.com/GadgetReactor/pyHS100/pull/122.patch","issue_url":"https://api.github.com/repos/GadgetReactor/pyHS100/issues/122","number":122,"state":"open","locked":false,"title":"Add bulb valid temperature range","user":{"login":"titilambert","id":47721,"node_id":"MDQ6VXNlcjQ3NzIx","avatar_url":"https://avatars2.githubusercontent.com/u/47721?v=4","gravatar_id":"","url":"https://api.github.com/users/titilambert","html_url":"https://github.com/titilambert","followers_url":"https://api.github.com/users/titilambert/followers","following_url":"https://api.github.com/users/titilambert/following{/other_user}","gists_url":"https://api.github.com/users/titilambert/gists{/gist_id}","starred_url":"https://api.github.com/users/titilambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titilambert/subscriptions","organizations_url":"https://api.github.com/users/titilambert/orgs","repos_url":"https://api.github.com/users/titilambert/repos","events_url":"https://api.github.com/users/titilambert/events{/privacy}","received_events_url":"https://api.github.com/users/titilambert/received_events","type":"User","site_admin":false},"body":"Linked to https://github.com/home-assistant/home-assistant/pull/15020","created_at":"2018-06-17T15:28:58Z","updated_at":"2018-06-17T15:51:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"101ff833d1afa7c244076b4379bfbb0b778d8345","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/122/commits","review_comments_url":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/122/comments","review_comment_url":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GadgetReactor/pyHS100/issues/122/comments","statuses_url":"https://api.github.com/repos/GadgetReactor/pyHS100/statuses/b331c41d88437fc176d0087dce2dfa5b0071a037","head":{"label":"titilambert:master","ref":"master","sha":"b331c41d88437fc176d0087dce2dfa5b0071a037","user":{"login":"titilambert","id":47721,"node_id":"MDQ6VXNlcjQ3NzIx","avatar_url":"https://avatars2.githubusercontent.com/u/47721?v=4","gravatar_id":"","url":"https://api.github.com/users/titilambert","html_url":"https://github.com/titilambert","followers_url":"https://api.github.com/users/titilambert/followers","following_url":"https://api.github.com/users/titilambert/following{/other_user}","gists_url":"https://api.github.com/users/titilambert/gists{/gist_id}","starred_url":"https://api.github.com/users/titilambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titilambert/subscriptions","organizations_url":"https://api.github.com/users/titilambert/orgs","repos_url":"https://api.github.com/users/titilambert/repos","events_url":"https://api.github.com/users/titilambert/events{/privacy}","received_events_url":"https://api.github.com/users/titilambert/received_events","type":"User","site_admin":false},"repo":{"id":137663821,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc2NjM4MjE=","name":"pyHS100","full_name":"titilambert/pyHS100","owner":{"login":"titilambert","id":47721,"node_id":"MDQ6VXNlcjQ3NzIx","avatar_url":"https://avatars2.githubusercontent.com/u/47721?v=4","gravatar_id":"","url":"https://api.github.com/users/titilambert","html_url":"https://github.com/titilambert","followers_url":"https://api.github.com/users/titilambert/followers","following_url":"https://api.github.com/users/titilambert/following{/other_user}","gists_url":"https://api.github.com/users/titilambert/gists{/gist_id}","starred_url":"https://api.github.com/users/titilambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titilambert/subscriptions","organizations_url":"https://api.github.com/users/titilambert/orgs","repos_url":"https://api.github.com/users/titilambert/repos","events_url":"https://api.github.com/users/titilambert/events{/privacy}","received_events_url":"https://api.github.com/users/titilambert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/titilambert/pyHS100","description":"Python Library to control TPLink Switch (HS100 / HS110)","fork":true,"url":"https://api.github.com/repos/titilambert/pyHS100","forks_url":"https://api.github.com/repos/titilambert/pyHS100/forks","keys_url":"https://api.github.com/repos/titilambert/pyHS100/keys{/key_id}","collaborators_url":"https://api.github.com/repos/titilambert/pyHS100/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/titilambert/pyHS100/teams","hooks_url":"https://api.github.com/repos/titilambert/pyHS100/hooks","issue_events_url":"https://api.github.com/repos/titilambert/pyHS100/issues/events{/number}","events_url":"https://api.github.com/repos/titilambert/pyHS100/events","assignees_url":"https://api.github.com/repos/titilambert/pyHS100/assignees{/user}","branches_url":"https://api.github.com/repos/titilambert/pyHS100/branches{/branch}","tags_url":"https://api.github.com/repos/titilambert/pyHS100/tags","blobs_url":"https://api.github.com/repos/titilambert/pyHS100/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/titilambert/pyHS100/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/titilambert/pyHS100/git/refs{/sha}","trees_url":"https://api.github.com/repos/titilambert/pyHS100/git/trees{/sha}","statuses_url":"https://api.github.com/repos/titilambert/pyHS100/statuses/{sha}","languages_url":"https://api.github.com/repos/titilambert/pyHS100/languages","stargazers_url":"https://api.github.com/repos/titilambert/pyHS100/stargazers","contributors_url":"https://api.github.com/repos/titilambert/pyHS100/contributors","subscribers_url":"https://api.github.com/repos/titilambert/pyHS100/subscribers","subscription_url":"https://api.github.com/repos/titilambert/pyHS100/subscription","commits_url":"https://api.github.com/repos/titilambert/pyHS100/commits{/sha}","git_commits_url":"https://api.github.com/repos/titilambert/pyHS100/git/commits{/sha}","comments_url":"https://api.github.com/repos/titilambert/pyHS100/comments{/number}","issue_comment_url":"https://api.github.com/repos/titilambert/pyHS100/issues/comments{/number}","contents_url":"https://api.github.com/repos/titilambert/pyHS100/contents/{+path}","compare_url":"https://api.github.com/repos/titilambert/pyHS100/compare/{base}...{head}","merges_url":"https://api.github.com/repos/titilambert/pyHS100/merges","archive_url":"https://api.github.com/repos/titilambert/pyHS100/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/titilambert/pyHS100/downloads","issues_url":"https://api.github.com/repos/titilambert/pyHS100/issues{/number}","pulls_url":"https://api.github.com/repos/titilambert/pyHS100/pulls{/number}","milestones_url":"https://api.github.com/repos/titilambert/pyHS100/milestones{/number}","notifications_url":"https://api.github.com/repos/titilambert/pyHS100/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/titilambert/pyHS100/labels{/name}","releases_url":"https://api.github.com/repos/titilambert/pyHS100/releases{/id}","deployments_url":"https://api.github.com/repos/titilambert/pyHS100/deployments","created_at":"2018-06-17T15:04:40Z","updated_at":"2018-06-17T15:46:34Z","pushed_at":"2018-06-17T15:46:32Z","git_url":"git://github.com/titilambert/pyHS100.git","ssh_url":"git@github.com:titilambert/pyHS100.git","clone_url":"https://github.com/titilambert/pyHS100.git","svn_url":"https://github.com/titilambert/pyHS100","homepage":null,"size":143,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GadgetReactor:master","ref":"master","sha":"caa01befd7d7d256dcece7d9fe528aaf3b761049","user":{"login":"GadgetReactor","id":9352787,"node_id":"MDQ6VXNlcjkzNTI3ODc=","avatar_url":"https://avatars0.githubusercontent.com/u/9352787?v=4","gravatar_id":"","url":"https://api.github.com/users/GadgetReactor","html_url":"https://github.com/GadgetReactor","followers_url":"https://api.github.com/users/GadgetReactor/followers","following_url":"https://api.github.com/users/GadgetReactor/following{/other_user}","gists_url":"https://api.github.com/users/GadgetReactor/gists{/gist_id}","starred_url":"https://api.github.com/users/GadgetReactor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GadgetReactor/subscriptions","organizations_url":"https://api.github.com/users/GadgetReactor/orgs","repos_url":"https://api.github.com/users/GadgetReactor/repos","events_url":"https://api.github.com/users/GadgetReactor/events{/privacy}","received_events_url":"https://api.github.com/users/GadgetReactor/received_events","type":"User","site_admin":false},"repo":{"id":62792596,"node_id":"MDEwOlJlcG9zaXRvcnk2Mjc5MjU5Ng==","name":"pyHS100","full_name":"GadgetReactor/pyHS100","owner":{"login":"GadgetReactor","id":9352787,"node_id":"MDQ6VXNlcjkzNTI3ODc=","avatar_url":"https://avatars0.githubusercontent.com/u/9352787?v=4","gravatar_id":"","url":"https://api.github.com/users/GadgetReactor","html_url":"https://github.com/GadgetReactor","followers_url":"https://api.github.com/users/GadgetReactor/followers","following_url":"https://api.github.com/users/GadgetReactor/following{/other_user}","gists_url":"https://api.github.com/users/GadgetReactor/gists{/gist_id}","starred_url":"https://api.github.com/users/GadgetReactor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GadgetReactor/subscriptions","organizations_url":"https://api.github.com/users/GadgetReactor/orgs","repos_url":"https://api.github.com/users/GadgetReactor/repos","events_url":"https://api.github.com/users/GadgetReactor/events{/privacy}","received_events_url":"https://api.github.com/users/GadgetReactor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GadgetReactor/pyHS100","description":"Python Library to control TPLink Switch (HS100 / HS110)","fork":false,"url":"https://api.github.com/repos/GadgetReactor/pyHS100","forks_url":"https://api.github.com/repos/GadgetReactor/pyHS100/forks","keys_url":"https://api.github.com/repos/GadgetReactor/pyHS100/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GadgetReactor/pyHS100/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GadgetReactor/pyHS100/teams","hooks_url":"https://api.github.com/repos/GadgetReactor/pyHS100/hooks","issue_events_url":"https://api.github.com/repos/GadgetReactor/pyHS100/issues/events{/number}","events_url":"https://api.github.com/repos/GadgetReactor/pyHS100/events","assignees_url":"https://api.github.com/repos/GadgetReactor/pyHS100/assignees{/user}","branches_url":"https://api.github.com/repos/GadgetReactor/pyHS100/branches{/branch}","tags_url":"https://api.github.com/repos/GadgetReactor/pyHS100/tags","blobs_url":"https://api.github.com/repos/GadgetReactor/pyHS100/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GadgetReactor/pyHS100/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GadgetReactor/pyHS100/git/refs{/sha}","trees_url":"https://api.github.com/repos/GadgetReactor/pyHS100/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GadgetReactor/pyHS100/statuses/{sha}","languages_url":"https://api.github.com/repos/GadgetReactor/pyHS100/languages","stargazers_url":"https://api.github.com/repos/GadgetReactor/pyHS100/stargazers","contributors_url":"https://api.github.com/repos/GadgetReactor/pyHS100/contributors","subscribers_url":"https://api.github.com/repos/GadgetReactor/pyHS100/subscribers","subscription_url":"https://api.github.com/repos/GadgetReactor/pyHS100/subscription","commits_url":"https://api.github.com/repos/GadgetReactor/pyHS100/commits{/sha}","git_commits_url":"https://api.github.com/repos/GadgetReactor/pyHS100/git/commits{/sha}","comments_url":"https://api.github.com/repos/GadgetReactor/pyHS100/comments{/number}","issue_comment_url":"https://api.github.com/repos/GadgetReactor/pyHS100/issues/comments{/number}","contents_url":"https://api.github.com/repos/GadgetReactor/pyHS100/contents/{+path}","compare_url":"https://api.github.com/repos/GadgetReactor/pyHS100/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GadgetReactor/pyHS100/merges","archive_url":"https://api.github.com/repos/GadgetReactor/pyHS100/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GadgetReactor/pyHS100/downloads","issues_url":"https://api.github.com/repos/GadgetReactor/pyHS100/issues{/number}","pulls_url":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls{/number}","milestones_url":"https://api.github.com/repos/GadgetReactor/pyHS100/milestones{/number}","notifications_url":"https://api.github.com/repos/GadgetReactor/pyHS100/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GadgetReactor/pyHS100/labels{/name}","releases_url":"https://api.github.com/repos/GadgetReactor/pyHS100/releases{/id}","deployments_url":"https://api.github.com/repos/GadgetReactor/pyHS100/deployments","created_at":"2016-07-07T09:11:45Z","updated_at":"2018-06-16T19:31:54Z","pushed_at":"2018-06-17T15:46:33Z","git_url":"git://github.com/GadgetReactor/pyHS100.git","ssh_url":"git@github.com:GadgetReactor/pyHS100.git","clone_url":"https://github.com/GadgetReactor/pyHS100.git","svn_url":"https://github.com/GadgetReactor/pyHS100","homepage":null,"size":143,"stargazers_count":154,"watchers_count":154,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":65,"open_issues":19,"watchers":154,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/122"},"html":{"href":"https://github.com/GadgetReactor/pyHS100/pull/122"},"issue":{"href":"https://api.github.com/repos/GadgetReactor/pyHS100/issues/122"},"comments":{"href":"https://api.github.com/repos/GadgetReactor/pyHS100/issues/122/comments"},"review_comments":{"href":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/122/comments"},"review_comment":{"href":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GadgetReactor/pyHS100/pulls/122/commits"},"statuses":{"href":"https://api.github.com/repos/GadgetReactor/pyHS100/statuses/b331c41d88437fc176d0087dce2dfa5b0071a037"}},"author_association":"NONE"}}
{"actor":{"display_login":"rytilahti"}}