Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Added an attribute for "end" and "areaDesc" (areas affected)
  • Loading branch information
finity69x2 authored Sep 4, 2024
1 parent aa1cbb3 commit 0e747f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/nws_alerts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ async def async_get_state(config, coords) -> dict:
"event_sent": None,
"event_onset": None,
"event_expires": None,
"event_ends": None,
"areas_affected": None,
"display_desc": None,
"spoken_desc": None,
}
Expand Down Expand Up @@ -280,6 +282,8 @@ async def async_get_alerts(zone_id: str = "", gps_loc: str = "") -> dict:
tmp_dict["Sent"] = alert["properties"]["sent"]
tmp_dict["Onset"] = alert["properties"]["onset"]
tmp_dict["Expires"] = alert["properties"]["expires"]
tmp_dict["Ends"] = alert["properties"]["ends"]
tmp_dict["AreasAffected"] = alert["properties"]["areaDesc"]
tmp_dict["Description"] = alert["properties"]["description"]
tmp_dict["Instruction"] = alert["properties"]["instruction"]

Expand Down

0 comments on commit 0e747f0

Please sign in to comment.