Skip to content

Commit

Permalink
Merge pull request #31 from PavelChertkov/main
Browse files Browse the repository at this point in the history
add state_class=MEASUREMENT for "Wind bearing" sensor
  • Loading branch information
PavelChertkov authored Oct 8, 2024
2 parents b66f7a6 + 3e43324 commit 5067972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_components/yandex_pogoda/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/yandex_pogoda/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 5067972

Please sign in to comment.