mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 02:18:02 +00:00
Allow enabling experimental devices from environment variable (#1194)
This commit is contained in:
@@ -214,9 +214,9 @@ def get_protocol(
|
||||
"SMART.KLAP": (SmartProtocol, KlapTransportV2),
|
||||
}
|
||||
if not (prot_tran_cls := supported_device_protocols.get(protocol_transport_key)):
|
||||
from .experimental.enabled import Enabled
|
||||
from .experimental import Experimental
|
||||
|
||||
if Enabled.value and protocol_transport_key == "SMART.AES.HTTPS":
|
||||
if Experimental.enabled() and protocol_transport_key == "SMART.AES.HTTPS":
|
||||
prot_tran_cls = (SmartCameraProtocol, SslAesTransport)
|
||||
else:
|
||||
return None
|
||||
|
Reference in New Issue
Block a user