mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-05-16 19:41:09 +00:00
Adding in support for the HS200 Wall switch referencing issues (#4), simplifying model determination
This commit is contained in:
parent
fe00041130
commit
1550b6cb2e
@ -254,11 +254,4 @@ class SmartPlug(object):
|
||||
"""Query sysinfo and determine model"""
|
||||
sys_info = self.get_info()
|
||||
model = re.sub('HS', '', sys_info["system"]["get_sysinfo"]["model"][:5])
|
||||
#if sys_info["system"]["get_sysinfo"]["model"][:5] == 'HS100':
|
||||
# model = 100
|
||||
#elif sys_info["system"]["get_sysinfo"]["model"][:5] == 'HS200':
|
||||
# model = 200
|
||||
#elif sys_info["system"]["get_sysinfo"]["model"][:5] == 'HS110':
|
||||
# model = 110
|
||||
print model
|
||||
return model
|
||||
|
Loading…
x
Reference in New Issue
Block a user