* Add reconnect logic and proper reporting
* Use snake_case
* Log on warning, not on info
* Reduce line length
* Refactor non-raising code out of try blocks
* Remove `_ensure_connected()` from action functions
* Force root import of references from other components
* Improve
* Adjust
* Tweak exceptions
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Adjust
* More
* Ignore violations in test
* Improve
* if the derivative is negative, ignore it
* add option to ignore the negatives or not
* add tests for a new ignore negative derivative
* add missing description when editing
* rename to ignore_negative_derivative
to increase clarity of which negative I mean
in case in the future we want a ignore_negative_value...
* use state_class=total_increasing to ignore the negative derivative
* remove ignore negative from the config
* add test for total_increasing_reset case
* add comments
* update test_total_increasing_reset with history tests
Also remove the last comment because the test is already clear
My existing comment there isn't unique to this unit test but applies to the entire component. The existing web documentation pointing to Wikipedia should suffice.
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Add platform Entity classes to pylint plugin
* Fix violations
* Fix violations
* More
* Allow component package with same name as a platform
* One more
* Fix default names for cover entities
* Drop component index if only one component exists
* Improve doc strings
* Use more consistent naming
* Typo
* Revert removing index 0 from entity names
* Improve names for RGB(W) lights
* Update pil.py
The default font size is far too small and will frequently be rendered completely unreadable by JPEG compression. This is much more consistently readable, and properly specifies the font size in the draw.text function rather than relying on it being 8.
* Update pil.py
Converted to ruff format
* Update pil.py
Trying to get ruff formatting
* Update pil.py
fixed whitespace
* Update pil.py
removed trailing space
* Added additional sensor to Weheat
* Added tests for old and new sensors
* Added energy sensor
* Changed tests to use snapshot
* Removed unused value and regenerated the ambr
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* changed DHW sensor creation
* Wrapped lambda function
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>