Flow rate unit conversions and device class (#106077)
* Add volume flow rate conversions
* Add missing translations
* Adjust liter unit and add gallons per minute
* Adjust to min instead of m for minutes
* Add matching class for number
* Add some tests for number and sensor platform
* Add deprecated constants
* Add explicit list of flow rate for check
This reverts commit 105171af31
.
This commit is contained in:
parent
a8e3df7e50
commit
cece117c93
14 changed files with 180 additions and 3 deletions
|
@ -103,7 +103,13 @@ def test_all() -> None:
|
|||
],
|
||||
"VOLUME_",
|
||||
)
|
||||
+ _create_tuples(const.UnitOfVolumeFlowRate, "VOLUME_FLOW_RATE_")
|
||||
+ _create_tuples(
|
||||
[
|
||||
const.UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR,
|
||||
const.UnitOfVolumeFlowRate.CUBIC_FEET_PER_MINUTE,
|
||||
],
|
||||
"VOLUME_FLOW_RATE_",
|
||||
)
|
||||
+ _create_tuples(
|
||||
[
|
||||
const.UnitOfMass.GRAMS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue