hass-core/tests/components/onewire
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
..
__init__.py Use ATTR_VIA_DEVICE constant in onewire tests (#58405) 2021-10-25 09:42:40 -04:00
conftest.py Use constants in Onewire tests (#58017) 2021-10-19 21:41:01 +02:00
const.py Add support for PRESSURE_CBAR (centibars) (#58762) 2021-11-10 09:44:05 +01:00
test_binary_sensor.py Move onewire device compatibility checks (#59338) 2021-11-09 18:30:05 +01:00
test_config_flow.py Use pytest fixtures on Onewire tests (#57973) 2021-10-18 19:16:53 +02:00
test_init.py Move onewire device compatibility checks (#59338) 2021-11-09 18:30:05 +01:00
test_sensor.py Move onewire device compatibility checks (#59338) 2021-11-09 18:30:05 +01:00
test_switch.py Move onewire device compatibility checks (#59338) 2021-11-09 18:30:05 +01:00