Fix broken rebase

This commit is contained in:
Teemu Rytilahti 2025-01-14 21:02:35 +01:00
parent c1ea380703
commit 6b2a284d42

View File

@ -205,10 +205,10 @@ 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 = (