diff --git a/custom_components/yandex_pogoda/sensor.py b/custom_components/yandex_pogoda/sensor.py index 088f87e..3ed2b98 100644 --- a/custom_components/yandex_pogoda/sensor.py +++ b/custom_components/yandex_pogoda/sensor.py @@ -96,6 +96,7 @@ icon="mdi:compass-rose", translation_key=ATTR_API_WIND_BEARING, native_unit_of_measurement=DEGREE, + state_class=SensorStateClass.MEASUREMENT, ), SensorEntityDescription( key=ATTR_WIND_INTERCARDINAL_DIRECTION, diff --git a/custom_components/yandex_pogoda/updater.py b/custom_components/yandex_pogoda/updater.py index e381a24..90d2837 100644 --- a/custom_components/yandex_pogoda/updater.py +++ b/custom_components/yandex_pogoda/updater.py @@ -78,7 +78,7 @@ {ATTR_API_WIND_SPEED} }} forecast {{ - days(limit: 3){{ + days {{ {ATTR_API_TIME} {ATTR_API_SUNRISE_BEGIN_TIME} {ATTR_API_SUNRISE_END_TIME}