mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-09 22:37:08 +00:00
Fix deviceencryptiontype import
This commit is contained in:
parent
1bbc55ac81
commit
978ed96f96
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user