Add real kasa KL430(UN) device dump (#192)

* Add real kasa KL430(UN) device dump

* Adjust hue&sat max values

* light strips, as bulbs, have only power for emeter

Co-authored-by: Teemu Rytilahti <tpr@iki.fi>
This commit is contained in:
Ivan Prodanov
2021-08-16 21:16:29 +03:00
committed by GitHub
parent 4e8a3185fb
commit 7c9d21af7a
3 changed files with 93 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ async def test_emeter_status(dev):
assert d["power_mw"] == d["power"] * 1000
# bulbs have only power according to tplink simulator.
if not dev.is_bulb:
if not dev.is_bulb and not dev.is_light_strip:
assert d["voltage_mv"] == d["voltage"] * 1000
assert d["current_ma"] == d["current"] * 1000