Adding in support for the HS200 Wall switch referencing issues (#4), simplifying model determination

This commit is contained in:
Stephen Maggard 2016-10-26 10:33:08 -05:00
parent fe00041130
commit 1550b6cb2e

View File

@ -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