mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-24 21:57:07 +00:00
fix test
This commit is contained in:
parent
e638c7b189
commit
5e290633ed
@ -1,6 +1,6 @@
|
|||||||
# type: ignore
|
# type: ignore
|
||||||
import re
|
import re
|
||||||
import sys
|
from typing import Type
|
||||||
|
|
||||||
import pytest # type: ignore # https://github.com/pytest-dev/pytest/issues/3342
|
import pytest # type: ignore # https://github.com/pytest-dev/pytest/issues/3342
|
||||||
|
|
||||||
@ -13,7 +13,6 @@ from kasa import (
|
|||||||
SmartDimmer,
|
SmartDimmer,
|
||||||
SmartLightStrip,
|
SmartLightStrip,
|
||||||
SmartPlug,
|
SmartPlug,
|
||||||
SmartStrip,
|
|
||||||
protocol,
|
protocol,
|
||||||
)
|
)
|
||||||
from kasa.discover import _DiscoverProtocol, json_dumps
|
from kasa.discover import _DiscoverProtocol, json_dumps
|
||||||
@ -111,7 +110,7 @@ async def test_connect_single_passed_device_type(
|
|||||||
discovery_data: dict,
|
discovery_data: dict,
|
||||||
mocker,
|
mocker,
|
||||||
device_type: DeviceType,
|
device_type: DeviceType,
|
||||||
klass: type[SmartDevice],
|
klass: Type[SmartDevice],
|
||||||
custom_port,
|
custom_port,
|
||||||
):
|
):
|
||||||
"""Make sure that connect_single with a passed device type."""
|
"""Make sure that connect_single with a passed device type."""
|
||||||
|
Loading…
Reference in New Issue
Block a user