mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-14 11:28:02 +00:00
Added KL125 and HS200 fixture dumps and updated tests to run on new format (#160)
* Added new fixtures * Refactored bulb categories and check for emeter on run * linting changes
This commit is contained in:
@@ -265,7 +265,9 @@ class FakeTransportProtocol(TPLinkSmartHomeProtocol):
|
||||
# if we have emeter support, we need to add the missing pieces
|
||||
for module in ["emeter", "smartlife.iot.common.emeter"]:
|
||||
for etype in ["get_realtime", "get_daystat", "get_monthstat"]:
|
||||
if etype in info[module]: # if the fixture has the data, use it
|
||||
if (
|
||||
module in info and etype in info[module]
|
||||
): # if the fixture has the data, use it
|
||||
# print("got %s %s from fixture: %s" % (module, etype, info[module][etype]))
|
||||
proto[module][etype] = info[module][etype]
|
||||
else: # otherwise fall back to the static one
|
||||
|
Reference in New Issue
Block a user