mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-17 07:38:42 +00:00
Fix deviceencryptiontype import
This commit is contained in:
@@ -6,10 +6,9 @@ import logging
|
|||||||
import time
|
import time
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from . import EncryptType
|
|
||||||
from .device import Device
|
from .device import Device
|
||||||
from .device_type import DeviceType
|
from .device_type import DeviceType
|
||||||
from .deviceconfig import DeviceConfig, DeviceFamily
|
from .deviceconfig import DeviceConfig, DeviceEncryptionType, DeviceFamily
|
||||||
from .exceptions import KasaException, UnsupportedDeviceError
|
from .exceptions import KasaException, UnsupportedDeviceError
|
||||||
from .iot import (
|
from .iot import (
|
||||||
IotBulb,
|
IotBulb,
|
||||||
@@ -199,7 +198,7 @@ def get_protocol(
|
|||||||
# Older FW used a different transport
|
# Older FW used a different transport
|
||||||
if (
|
if (
|
||||||
ctype.device_family is DeviceFamily.SmartTapoRobovac
|
ctype.device_family is DeviceFamily.SmartTapoRobovac
|
||||||
and ctype.encryption_type is EncryptType.Aes
|
and ctype.encryption_type is DeviceEncryptionType.Aes
|
||||||
):
|
):
|
||||||
return SmartProtocol(transport=SslTransport(config=config))
|
return SmartProtocol(transport=SslTransport(config=config))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user