mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-17 23:52:22 +00:00
* Add check to ensure devices with lat/lon with `_i` suffix are supported (#54) * Add .gitignore for posterity
This commit is contained in:
@@ -5,7 +5,7 @@ import datetime
|
||||
import re
|
||||
|
||||
from .. import SmartPlug, SmartPlugException
|
||||
from .fakes import FakeTransportProtocol, sysinfo_hs110
|
||||
from .fakes import FakeTransportProtocol, sysinfo_hs110, sysinfo_hs105
|
||||
|
||||
PLUG_IP = '192.168.250.186'
|
||||
SKIP_STATE_TESTS = False
|
||||
@@ -221,6 +221,11 @@ class TestSmartPlug(TestCase):
|
||||
def test_location(self):
|
||||
self.sysinfo_schema(self.plug.location)
|
||||
|
||||
def test_location_i(self):
|
||||
plug_i = SmartPlug(PLUG_IP,
|
||||
protocol=FakeTransportProtocol(sysinfo_hs105))
|
||||
self.sysinfo_schema(plug_i.location)
|
||||
|
||||
def test_rssi(self):
|
||||
self.sysinfo_schema({'rssi': self.plug.rssi}) # wrapping for vol
|
||||
|
||||
|
||||
Reference in New Issue
Block a user