Skip to content
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

Fix blocking metadata version call #248

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

TheJulianJES
Copy link
Contributor

This moves the blocking metadata version call outside of the load_network_info coroutine that's run at startup.
And it's also a good test run to see if tests are still working with the latest zigpy.

@@ -84,7 +85,7 @@ async def backup_network(znp: ZNP) -> t.JSONType:

now = datetime.datetime.now().astimezone()

obj["metadata"]["source"] = f"zigpy-znp@{importlib.metadata.version('zigpy-znp')}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, we don't really need to replace this in the old CLI tools, but I guess it also doesn't hurt..

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.10%. Comparing base (b658bc1) to head (79a75c8).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #248   +/-   ##
=======================================
  Coverage   98.10%   98.10%           
=======================================
  Files          43       43           
  Lines        3647     3649    +2     
=======================================
+ Hits         3578     3580    +2     
  Misses         69       69           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TheJulianJES TheJulianJES merged commit 92eef38 into zigpy:dev Jun 26, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant