mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-04 09:44:14 +00:00
Create common interfaces for remaining device types (#895)
Introduce common module interfaces across smart and iot devices and provide better typing implementation for getting modules to support this.
This commit is contained in:
@@ -19,7 +19,7 @@ app = typer.Typer()
|
||||
def create_fixtures(dev: IotDevice, outputdir: Path):
|
||||
"""Iterate over supported modules and create version-specific fixture files."""
|
||||
for name, module in dev.modules.items():
|
||||
module_dir = outputdir / name
|
||||
module_dir = outputdir / str(name)
|
||||
if not module_dir.exists():
|
||||
module_dir.mkdir(exist_ok=True, parents=True)
|
||||
|
||||
|
Reference in New Issue
Block a user