From 978ed96f96d9208441eece0a1ee2afacb2453326 Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Fri, 3 Jan 2025 19:05:45 +0100 Subject: [PATCH] Fix deviceencryptiontype import --- kasa/device_factory.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kasa/device_factory.py b/kasa/device_factory.py index c1679e15..4bea3a17 100644 --- a/kasa/device_factory.py +++ b/kasa/device_factory.py @@ -6,10 +6,9 @@ import logging import time from typing import Any -from . import EncryptType from .device import Device from .device_type import DeviceType -from .deviceconfig import DeviceConfig, DeviceFamily +from .deviceconfig import DeviceConfig, DeviceEncryptionType, DeviceFamily from .exceptions import KasaException, UnsupportedDeviceError from .iot import ( IotBulb, @@ -199,7 +198,7 @@ def get_protocol( # Older FW used a different transport if ( 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))