Skip to content

Commit

Permalink
Add Measurement state class to fire index
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts committed Apr 29, 2024
1 parent 4aadc14 commit 43db5dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/pirateweather/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,13 +376,15 @@ class PirateWeatherSensorEntityDescription(SensorEntityDescription):
"fire_index": PirateWeatherSensorEntityDescription(
key="fire_index",
name="Fire Index",
state_class=SensorStateClass.MEASUREMENT,
suggested_display_precision=2,
icon="mdi:fire",
forecast_mode=["currently", "hourly"],
),
"fire_index_max": PirateWeatherSensorEntityDescription(
key="fire_index_max",
name="Fire Index Max",
state_class=SensorStateClass.MEASUREMENT,
suggested_display_precision=2,
icon="mdi:fire",
forecast_mode=["daily"],
Expand Down

0 comments on commit 43db5dc

Please sign in to comment.