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

Make Device.sensors() only return read-only descriptors #1871

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

rytilahti
Copy link
Owner

This was incorrectly returning also readable settings, this changes the behavior to conform with the docstring.

@rytilahti rytilahti added the bug label Dec 5, 2023
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9b17d90) 81.40% compared to head (90123a1) 81.40%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1871   +/-   ##
=======================================
  Coverage   81.40%   81.40%           
=======================================
  Files         193      193           
  Lines       18563    18563           
  Branches     4025     4025           
=======================================
  Hits        15111    15111           
  Misses       3171     3171           
  Partials      281      281           

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

@rytilahti rytilahti merged commit 36b4025 into master Dec 5, 2023
23 of 24 checks passed
@rytilahti rytilahti deleted the fix/sensor_return_only_readonly branch December 5, 2023 00:32
rytilahti added a commit that referenced this pull request Feb 16, 2024
Also, optimize future status queries a bit by constructing the status
query already during the initialization phase.

Fixes a regression caused by #1871, the genericmiot requires
deliberately some tests to avoid such, but it's better to have basic
functionalities working on master so I'll merge this asap.
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.

1 participant