mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add Beaufort to wind_speed (#105795)
* Add Beaufort to wind_speed * Add Bft to UnitOfSpeed * Update tests with Bft * Remove check for unit * Fix test_deprecated_constants * Test depricated constant Beaufort * Fix test_unit_system.py for Beaufort * Remove _DEPRECATED_SPEED_FEET_BEAUFORT * Remove maxsize from lru_cache * Update test_deprecated_constants * Update comment * Add missing docstring * Apply suggestions from code review --------- Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
@@ -515,6 +515,7 @@ UNCONVERTED_UNITS_METRIC_SYSTEM = {
|
||||
UnitOfPressure.PA,
|
||||
),
|
||||
SensorDeviceClass.SPEED: (
|
||||
UnitOfSpeed.BEAUFORT,
|
||||
UnitOfSpeed.KILOMETERS_PER_HOUR,
|
||||
UnitOfSpeed.KNOTS,
|
||||
UnitOfSpeed.METERS_PER_SECOND,
|
||||
@@ -723,6 +724,7 @@ UNCONVERTED_UNITS_US_SYSTEM = {
|
||||
),
|
||||
SensorDeviceClass.PRESSURE: (UnitOfPressure.INHG, UnitOfPressure.PSI),
|
||||
SensorDeviceClass.SPEED: (
|
||||
UnitOfSpeed.BEAUFORT,
|
||||
UnitOfSpeed.FEET_PER_SECOND,
|
||||
UnitOfSpeed.KNOTS,
|
||||
UnitOfSpeed.MILES_PER_HOUR,
|
||||
|
||||
Reference in New Issue
Block a user