mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-01 21:58:17 +00:00
Fix broken rebase
This commit is contained in:
@@ -205,11 +205,11 @@ def get_protocol(config: DeviceConfig, *, strict: bool = False) -> BaseProtocol
|
|||||||
return IotProtocol(transport=LinkieTransportV2(config=config))
|
return IotProtocol(transport=LinkieTransportV2(config=config))
|
||||||
|
|
||||||
# Older FW used a different transport
|
# Older FW used a different transport
|
||||||
|
if ctype.device_family is DeviceFamily.SmartTapoRobovac:
|
||||||
if strict and ctype.encryption_type is not DeviceEncryptionType.Aes:
|
if strict and ctype.encryption_type is not DeviceEncryptionType.Aes:
|
||||||
return None
|
return None
|
||||||
and ctype.encryption_type is DeviceEncryptionType.Aes
|
if ctype.encryption_type is DeviceEncryptionType.Aes:
|
||||||
):
|
return SmartProtocol(transport=SslTransport(config=config))
|
||||||
return SmartProtocol(transport=SslTransport(config=config))
|
|
||||||
|
|
||||||
protocol_transport_key = (
|
protocol_transport_key = (
|
||||||
protocol_name
|
protocol_name
|
||||||
|
|||||||
Reference in New Issue
Block a user