Skip to content

miot_device: only emit fallback mapping warning once#2080

Open
rytilahti wants to merge 1 commit into
masterfrom
warn-fallback-once
Open

miot_device: only emit fallback mapping warning once#2080
rytilahti wants to merge 1 commit into
masterfrom
warn-fallback-once

Conversation

@rytilahti

Copy link
Copy Markdown
Owner

To avoid log spam, only emit the "Unable to find mapping" warning once per device instance instead of on every call to _get_mapping().

Fixes #1907

@rytilahti rytilahti added the bug label Jul 5, 2026
@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.13%. Comparing base (2817647) to head (1a79345).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2080   +/-   ##
=======================================
  Coverage   84.13%   84.13%           
=======================================
  Files         199      199           
  Lines       20164    20167    +3     
  Branches     1063     1064    +1     
=======================================
+ Hits        16964    16967    +3     
  Misses       3010     3010           
  Partials      190      190           

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

@rytilahti rytilahti added this to the 0.6.0 milestone Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to find mapping for zhimi.airp.mb3a, falling back to zhimi.airpurifier.ma4

1 participant