core/tests/util
Tim Rightnour 93395f9b68
Add support for PRESSURE_CBAR (centibars) (#58762)
* Add support for PRESSURE_CBAR (centibars).  This is the standard UOM for tensiometers.

While the data could be converted into something like MBAR, and displayed
like that, the correct UOM for this type of sensor is CBAR.  Displaying
it as MBAR would be the same as displaying air pressure as feet of Hg, while
technically correct, it's hard to understand when reading.

Adding support for this UOM will fix errors in the UI(statistics) about the unit not
matching a unit of the device_class.

* Add tests for PRESSURE_CBAR
2021-11-10 09:44:05 +01:00
..
yaml Merge multiple context managers in tests (#48146) 2021-03-27 09:17:15 +01:00
__init__.py Fix PEP257 issues 2016-03-09 11:15:04 +01:00
test_aiohttp.py Fix cloudhooks coming in for non existing webhooks (#36836) 2020-06-15 16:30:40 -07:00
test_async.py Upgrade pyupgrade to 2.21.2, apply its changes (#52987) 2021-07-19 10:46:09 +02:00
test_color.py Guard blowing up converting 0 mired/kelvin (#35486) 2020-06-04 08:48:39 -07:00
test_distance.py Add more units to distance conversion util (#40181) 2020-11-09 11:38:15 +01:00
test_dt.py Fix find_next_time_expression_time (#58894) 2021-11-01 17:45:13 +01:00
test_executor.py Fix deadlock at shutdown with python 3.9 (#52613) 2021-07-07 09:23:24 +02:00
test_init.py Add mixin classes for required keys in EntityDescription (#53610) 2021-07-28 11:50:13 +02:00
test_json.py Improve bad JSON data reporting (#47932) 2021-03-15 10:41:25 +01:00
test_location.py Add currency to location data (#53575) 2021-07-27 21:05:16 -07:00
test_logging.py Ensure original log handlers are restored at close (#49230) 2021-04-15 10:53:48 +02:00
test_network.py Add support for capturing renewals to dhcp discovery (#48242) 2021-03-30 15:41:12 +02:00
test_package.py Update pylint to 2.8.0 (#49637) 2021-04-24 14:39:24 -10:00
test_percentage.py Handle range conversions that do not start at 1 (#48298) 2021-03-24 12:33:44 -10:00
test_pressure.py Add support for PRESSURE_CBAR (centibars) (#58762) 2021-11-10 09:44:05 +01:00
test_process.py Prevent ping integration from blocking startup (#38504) 2020-08-05 12:43:35 +02:00
test_speed.py Add speed conversion function & add speed to units system (#53846) 2021-11-09 08:12:28 +01:00
test_temperature.py Normalize temperature statistics to °C (#52297) 2021-06-30 14:17:58 +02:00
test_thread.py Ensure shutdown does not deadlock (#49282) 2021-04-18 08:55:51 -10:00
test_timeout.py Use contextlib.suppress where possible (#48189) 2021-03-23 14:36:43 +01:00
test_unit_system.py Normalize temperature statistics to °C (#52297) 2021-06-30 14:17:58 +02:00
test_uuid.py Improve performance of generating non-cryptographically secure uuids (#41314) 2020-10-07 16:37:01 +02:00
test_volume.py Add device class `gas` and enable statistics for it (#54110) 2021-08-11 09:58:19 -07:00