Add native precipitation unit for weatherkit (#101073)

This commit is contained in:
TJ Horner 2023-09-28 14:24:07 -07:00 committed by Franck Nijhof
parent 97448eff8f
commit 9c0bc57fed
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -134,6 +134,7 @@ class WeatherKitWeather(
_attr_native_pressure_unit = UnitOfPressure.MBAR
_attr_native_visibility_unit = UnitOfLength.KILOMETERS
_attr_native_wind_speed_unit = UnitOfSpeed.KILOMETERS_PER_HOUR
_attr_native_precipitation_unit = UnitOfLength.MILLIMETERS
def __init__(
self,