Skip to content

Commit

Permalink
Set default if vmax is not available (#11)
Browse files Browse the repository at this point in the history
Set default if vmax is not available
  • Loading branch information
MelleD authored Oct 11, 2024
1 parent c57b043 commit 59399fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/radar_warnings/radar_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ async def get_pois(self):
latitude=poi_data['lat'],
longitude=poi_data['lng'],
street=street,
vmax=poi_data['vmax'],
vmax=poi_data.get('vmax',0),
distance=distance,
adress=adress,
adress_short = adress_short,
Expand Down

0 comments on commit 59399fb

Please sign in to comment.