Add P300 fixture (#717)

* Add P300 fixture

* fixture after update

* Add tests for p300
This commit is contained in:
Teemu R
2024-01-29 18:14:30 +01:00
committed by GitHub
parent 1ad2a05b65
commit f8e273981c
9 changed files with 1123 additions and 39 deletions

View File

@@ -27,7 +27,16 @@ from kasa.discover import DiscoveryResult, _DiscoverProtocol, json_dumps
from kasa.exceptions import AuthenticationException, UnsupportedDeviceException
from kasa.xortransport import XorEncryption
from .conftest import bulb, bulb_iot, dimmer, lightstrip, new_discovery, plug, strip
from .conftest import (
bulb,
bulb_iot,
dimmer,
lightstrip,
new_discovery,
plug,
strip,
strip_iot,
)
UNSUPPORTED = {
"result": {
@@ -67,7 +76,7 @@ async def test_type_detection_bulb(dev: SmartDevice):
assert d.device_type == DeviceType.Bulb
@strip
@strip_iot
async def test_type_detection_strip(dev: SmartDevice):
d = Discover._get_device_class(dev._last_update)("localhost")
assert d.is_strip