mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-09-04 06:18:35 +00:00
add hs100 tests
This commit is contained in:
@@ -58,7 +58,7 @@ sysinfo_hs100 = {'system': {'get_sysinfo':
|
|||||||
'latitude': 12.2,
|
'latitude': 12.2,
|
||||||
'led_off': 0,
|
'led_off': 0,
|
||||||
'longitude': 12.2,
|
'longitude': 12.2,
|
||||||
'mac': '50:C7:BF:xx:xx:xx',
|
'mac': '50:C7:BF:11:22:33',
|
||||||
'model': 'HS100(EU)',
|
'model': 'HS100(EU)',
|
||||||
'oemId': '812A90EB2FCF306A993FAD8748024B07',
|
'oemId': '812A90EB2FCF306A993FAD8748024B07',
|
||||||
'on_time': 255419,
|
'on_time': 255419,
|
||||||
|
@@ -6,8 +6,9 @@ import re
|
|||||||
|
|
||||||
from .. import SmartPlug, SmartDeviceException
|
from .. import SmartPlug, SmartDeviceException
|
||||||
from .fakes import (FakeTransportProtocol,
|
from .fakes import (FakeTransportProtocol,
|
||||||
sysinfo_hs110,
|
sysinfo_hs100,
|
||||||
sysinfo_hs105,
|
sysinfo_hs105,
|
||||||
|
sysinfo_hs110,
|
||||||
sysinfo_hs200)
|
sysinfo_hs200)
|
||||||
|
|
||||||
PLUG_IP = '192.168.250.186'
|
PLUG_IP = '192.168.250.186'
|
||||||
@@ -250,6 +251,10 @@ class TestSmartPlugHS110(TestCase):
|
|||||||
# TODO check setting?
|
# TODO check setting?
|
||||||
|
|
||||||
|
|
||||||
|
class TestSmartPlugHS100(TestSmartPlugHS110):
|
||||||
|
SYSINFO = sysinfo_hs100
|
||||||
|
|
||||||
|
|
||||||
class TestSmartPlugHS200(TestSmartPlugHS110):
|
class TestSmartPlugHS200(TestSmartPlugHS110):
|
||||||
SYSINFO = sysinfo_hs200
|
SYSINFO = sysinfo_hs200
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user