8000 Add TC65 fixture by rytilahti · Pull Request #1200 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content

Add TC65 fixture #1200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions devtools/dump_devinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,12 +987,14 @@ async def get_smart_fixtures(
copy_folder = SMART_FOLDER
else:
# smart camera protocol
hw_version = final["getDeviceInfo"]["device_info"]["basic_info"]["hw_version"]
sw_version = final["getDeviceInfo"]["device_info"]["basic_info"]["sw_version"]
model = final["getDeviceInfo"]["device_info"]["basic_info"]["device_model"]
region = final["getDeviceInfo"]["device_info"]["basic_info"]["region"]
basic_info = final["getDeviceInfo"]["device_info"]["basic_info"]
hw_version = basic_info["hw_version"]
sw_version = basic_info["sw_version"]
model = basic_info["device_model"]
region = basic_info.get("region")
sw_version = sw_version.split(" ", maxsplit=1)[0]
model = f"{model}({region})"
if region is not None:
model = f"{model}({region})"
copy_folder = SMARTCAMERA_FOLDER

save_filename = f"{model}_{hw_version}_{sw_version}.json"
Expand Down
2 changes: 1 addition & 1 deletion kasa/experimental/smartcamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _map_info(self, device_info: dict) -> dict:
"fw_ver": basic_info["sw_version"],
"hw_ver": basic_info["hw_version"],
"mac": basic_info["mac"],
"hwId": basic_info["hw_id"],
"hwId": basic_info.get("hw_id"),
"oem_id": basic_info["oem_id"],
}

Expand Down
Loading
Loading
0