mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-07-07 04:00:05 +00:00
Fix broken rebase
This commit is contained in:
parent
c1ea380703
commit
6b2a284d42
@ -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 = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user