Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@puddly
Copy link
Collaborator

@puddly puddly commented Oct 27, 2025

We've collected enough reports in #1640 to fix all of the quirks and to get a good idea of how many real-world devices do this poorly.

Copilot AI review requested due to automatic review settings October 27, 2025 19:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR demotes a warning message about incorrectly directed cluster messages to a debug-level log, as sufficient reports have been collected to address the underlying quirks in real-world devices. The warning is no longer needed for user-facing diagnostics.

Key changes:

  • Changed log level from warning to debug for incorrect cluster direction messages
  • Removed the associated test case that validated the warning behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
zigpy/device.py Downgraded logging level from LOGGER.warning to LOGGER.debug for incorrect cluster direction messages
tests/test_device.py Removed test case test_device_flipped_cluster_warning and cleaned up unused OnOff import

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@TheJulianJES TheJulianJES left a comment

Choose a reason for hiding this comment

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

Agreed.
Since we keep the message at debug level, doesn't it also make sense to keep the test? Or is this so trivial we just don't want the test for that?

@puddly
Copy link
Collaborator Author

puddly commented Oct 27, 2025

We don't test any other debug logging so I just thought it wasn't worth the extra code.

@TheJulianJES
Copy link
Contributor

Yeah, ok. We don't really have any explicit tests for the matching/flipping logic then, right? At least none were added with https://github.com/zigpy/zigpy/pull/1639/files, other than the one that mainly checks for the warning to be present.

@puddly
Copy link
Collaborator Author

puddly commented Oct 27, 2025

Ooo, good point. I'll see about adding one.

@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 99.30%. Comparing base (1aba0f1) to head (a5f3495).
⚠️ Report is 2 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #1697   +/-   ##
=======================================
  Coverage   99.30%   99.30%           
=======================================
  Files          63       63           
  Lines       12188    12188           
=======================================
  Hits        12103    12103           
  Misses         85       85           

β˜” 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.

@puddly puddly merged commit 6ab924a into zigpy:dev Oct 27, 2025
12 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.

2 participants