* Roomba: add last mission sensor
* Set sensor as unavailable if last mission timestamp is 0
Previously, if the `mssnStrtTm` was 0, the function would return a 1970-01-01 (Unix epoch start date). With this change, the function will return None if the timestamp is 0 and the sensor will become unavailable.
* Update last_mission property to use dt_util.utc_from_timestamp
threshold: Parameterize many of the tests
This simplfies the structure of the basic threshold tests,
making it easier to subsequently update or add missing test cases.
Except for a few removals of an inconsistenly applied assertions on
`state.attributes["sensor_value"]`, there are no changes to the existing
tests intended. All previous tests are expected to run identically.
A few extra test cases for None are added.
* Minimum change required to get OHW into statistics
Not sure if there is any reason not to have this, my only idea would be that there would be that there are A LOT of values, but as far as I can see there are already long term data being stored about them anyway
* Update sensor.py
Guess that was an old way of doing it -_-
* Update sensor.py
remove spaces the break ruff -_-
* Update sensor.py
ruff is rough
* feat: Add new functions to ADS sensor integration
* fix: use constant for SensorDeviceClass, refactor entity initialisation.
* fix: add python typing.
* refactor: value conversion based on ADS_TYPE, and in the dedicated data fetching method.
* fix: removed unnecessary sensor types.
* refactor: optimised the usage of device classes and added state classes. removed unit of measurement
* fix: added unit of measurement to ADS sensor
* fix: addressing review suggestions.
* fix: address review suggestions.
* added calories to energy class
* changes
* temporarily solving the problem with conversion accuracy
* add tests
* added calories to energy class
* changes
* add tests
* Update homeassistant/util/unit_conversion.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Update homeassistant/util/unit_conversion.py
Co-authored-by: Robert Resch <robert@resch.dev>
* apply suggestions
* Update homeassistant/util/unit_conversion.py
---------
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Bump thinqconnect to 0.9.7
* Pass a r/w parameter to get active properties id from the cloud
---------
Co-authored-by: jangwon.lee <jangwon.lee@lge.com>
* Add alias to DOMAIN import (part 4)
* Simplify
* More integration
* Apply suggestions from code review
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Revert "Apply suggestions from code review"
This reverts commit 07471d3629.
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>