Release 0.3.1 (#121)

* update changelog, bump version to 0.3.1

* fix flake8
This commit is contained in:
Teemu R
2018-06-16 21:31:51 +02:00
committed by GitHub
parent ef2e21ff69
commit caa01befd7
3 changed files with 87 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ class SmartPlug(SmartDevice):
return None
return int(self.sys_info['brightness'])
@brightness.setter
def brightness(self, value: int):
"""
@@ -110,7 +110,7 @@ class SmartPlug(SmartDevice):
return None
if not isinstance(value, int):
raise ValueError("Brightness must be integer, "
raise ValueError("Brightness must be integer, "
"not of %s.", type(value))
elif value > 0 and value <= 100:
self.turn_on()