Use new unit enums in alexa (#83409)

* Use new unit enums in alexa

* Adjust for mypy
This commit is contained in:
epenet
2022-12-06 17:31:40 +01:00
committed by GitHub
parent d715aa6867
commit 91d6d620c2
5 changed files with 21 additions and 17 deletions

View File

@@ -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(