core/tests/components/airzone
Erik Montnemery 086a6460ef
Allow customizing sensor state precision (#86074)
* Allow customizing sensor precision

* Don't convert integer strings to floats

* Tweak converting sensor state to number

* Drop default rounding to 2 decimals

* Adjust test

* Tweak rounding, improve test coverage

* Don't convert to a number if not necessary

* Raise if native_precision is set and state is not numeric

* Address review comments

* Address comments, simplify

* Don't call  property twice

* Make exception more helpful
2023-01-25 08:55:46 +01:00
..
__init__.py
test_binary_sensor.py airzone: update aioairzone to v0.5.2 (#84690) 2022-12-28 16:37:50 +01:00
test_climate.py airzone: update aioairzone to v0.5.2 (#84690) 2022-12-28 16:37:50 +01:00
test_config_flow.py Add Airzone DHCP discovery support (#82339) 2022-11-23 12:32:23 -07:00
test_coordinator.py Use Airzone WebServer MAC address as unique ID (#70287) 2022-04-25 22:52:55 -10:00
test_diagnostics.py Adjust root-import in tests (#78761) 2022-09-19 15:22:23 +02:00
test_init.py Use Airzone WebServer MAC address as unique ID (#70287) 2022-04-25 22:52:55 -10:00
test_select.py Add Airzone Select platform support (#76415) 2023-01-05 11:03:36 -10:00
test_sensor.py Allow customizing sensor state precision (#86074) 2023-01-25 08:55:46 +01:00
util.py Add Airzone Select platform support (#76415) 2023-01-05 11:03:36 -10:00