Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Jan-Philipp Benecke
e04fda3fad
Add config flow to trend ( #99761 )
...
* Add config flow to trend
* Remove device_class from options flow
* Add min_samples and import step to config flow
* Fix import
* Fixing tests and some cleanup
* remove unneeded usefixtures
* Apply code review suggestions
* Re-add YAML support
* Re-add reload service
* Fix import
* Apply code review suggestions
* Add test coverage for yaml setup
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-12-27 14:46:57 +01:00
Jan-Philipp Benecke
f59588b413
Make the minimum number of samples used by the trend sensor configurable ( #101102 )
...
* Make the minimum of samples configurable & raise issue when min_samples > max_samples
* Wording
* Remove issue creation and use a custom schema validator
* Remove issue from strings.json
* Add test for validator and fix error message
2023-11-30 15:41:58 +01:00
Jack Boswell
3d3aa824b3
Refactor Trend to use async_setup_platform
( #78216 )
...
* Move trend constants to const.py
* Migrate to async_setup_platform
* Fix test
* Reorder attrs
2022-09-28 08:46:13 +02:00