mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Use new unit enums in alexa (#83409)
* Use new unit enums in alexa * Adjust for mypy
This commit is contained in:
@@ -84,14 +84,14 @@ class UnitSystem:
|
||||
self,
|
||||
name: str,
|
||||
*,
|
||||
accumulated_precipitation: str,
|
||||
accumulated_precipitation: UnitOfPrecipitationDepth,
|
||||
conversions: dict[tuple[SensorDeviceClass | str | None, str | None], str],
|
||||
length: str,
|
||||
mass: str,
|
||||
pressure: str,
|
||||
temperature: str,
|
||||
volume: str,
|
||||
wind_speed: str,
|
||||
length: UnitOfLength,
|
||||
mass: UnitOfMass,
|
||||
pressure: UnitOfPressure,
|
||||
temperature: UnitOfTemperature,
|
||||
volume: UnitOfVolume,
|
||||
wind_speed: UnitOfSpeed,
|
||||
) -> None:
|
||||
"""Initialize the unit system object."""
|
||||
errors: str = ", ".join(
|
||||
|
Reference in New Issue
Block a user