mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 03:08:01 +02:00
Add NORMALISED_UNIT to UnitConverter (#78920)
* Add NORMALISED_UNIT to UnitConverter * Adjust statistics * Rename
This commit is contained in:
@ -31,6 +31,7 @@ class UnitConverter(Protocol):
|
||||
"""Define the format of a conversion utility."""
|
||||
|
||||
VALID_UNITS: tuple[str, ...]
|
||||
NORMALIZED_UNIT: str
|
||||
|
||||
def convert(self, value: float, from_unit: str, to_unit: str) -> float:
|
||||
"""Convert one unit of measurement to another."""
|
||||
|
Reference in New Issue
Block a user