Skip to content

Conversation

@alams154
Copy link
Contributor

Discovery fails because D225 does not provide an encrypt_info field in it's response json

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.84%. Comparing base (29007e1) to head (1468f60).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1602      +/-   ##
==========================================
+ Coverage   92.82%   92.84%   +0.01%     
==========================================
  Files         157      157              
  Lines        9642     9654      +12     
  Branches      976      976              
==========================================
+ Hits         8950     8963      +13     
  Misses        492      492              
+ Partials      200      199       -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@rytilahti rytilahti left a comment

Choose a reason for hiding this comment

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

Please clean up the unnecessary changes from this PR to make it easier to review, I will take a deeper look into the changes then.

Comment on lines 143 to 147
# Ensure Discover._redact_data reflects the CLI flag for this invocation.
# Some discovery internals call redact_data for debug logging when the
# global Discover._redact_data is True. We temporarily set the global
# to match the user's request so that redact_data is only invoked when
# --redact is passed. Restore the previous value afterwards.
Copy link
Member

Choose a reason for hiding this comment

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

Please only modify parts necessary for the functionality related to this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comments have been removed

self.target = target
self.target_1 = (target, self.discovery_port)
self.target_2 = (target, Discover.DISCOVERY_PORT_2)
self.target_3 = (target, Discover.DISCOVERY_PORT_3)
Copy link
Member

Choose a reason for hiding this comment

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

Wasn't this added already in an earlier PR? If so, please rebase on top of the current master branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be rebased now

Comment on lines 93 to 98
return self._device.sys_info["battery_percent"]
return self._device.sys_info.get("battery_percent")

@property
def battery_low(self) -> bool:
def battery_low(self) -> bool | None:
"""Return True if battery is low."""
return self._device.sys_info["low_battery"]
return self._device.sys_info.get("low_battery")
Copy link
Member

Choose a reason for hiding this comment

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

Please do not change the API, these changes should not be necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be removed now

@alams154 alams154 force-pushed the feat/add-d225-library-support branch 3 times, most recently from 811d469 to a5e6e97 Compare November 6, 2025 14:31
@alams154 alams154 force-pushed the feat/add-d225-library-support branch from a5e6e97 to 608be2c Compare November 6, 2025 14:37
@alams154 alams154 force-pushed the feat/add-d225-library-support branch from 8e4ddd1 to 1468f60 Compare November 6, 2025 15:16
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.

2 participants