fix the tests

This commit is contained in:
Bas Nijholt
2019-11-11 20:44:12 +01:00
parent 583c785611
commit b2973cda6c
6 changed files with 194 additions and 242 deletions

View File

@@ -68,7 +68,7 @@ class SmartPlug(SmartDevice):
if not isinstance(value, int):
raise ValueError("Brightness must be integer, " "not of %s.", type(value))
elif 0 < value <= 100:
self.turn_on()
await self.turn_on()
await self._query_helper(
"smartlife.iot.dimmer", "set_brightness", {"brightness": value}
)