rytilahti / python-miio

Python library & console tool for controlling Xiaomi smart appliances
https://python-miio.readthedocs.io
GNU General Public License v3.0
3.68k stars 552 forks source link

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

Closed rytilahti closed 10 months ago

rytilahti commented 10 months ago

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

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.