Allow enabling experimental devices from environment variable (#1194)

This commit is contained in:
Steven B.
2024-10-29 09:30:30 +00:00
committed by GitHub
parent d30d116f37
commit 4aec9d302f
6 changed files with 75 additions and 22 deletions

View File

@@ -309,9 +309,9 @@ async def cli(
if debug:
logging.basicConfig(level=logging.DEBUG)
from kasa.experimental.enabled import Enabled
from kasa.experimental import Experimental
Enabled.set(True)
Experimental.set_enabled(True)
credentials = Credentials(username=username, password=password)
if host is not None: