mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
add missed test for invalid types
This commit is contained in:
@@ -362,3 +362,9 @@ class TestSmartPlugHS220(TestSmartPlugHS105):
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
self.plug.brightness = -1
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
self.plug.brightness = "foo"
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
self.plug.brightness = 11.1
|
||||
|
Reference in New Issue
Block a user