Skip to content

Commit

Permalink
Fix integration unloading
Browse files Browse the repository at this point in the history
  • Loading branch information
warrior25 committed Feb 19, 2024
1 parent 912c1a1 commit 6938766
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/nysse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def async_unload_entry(
)
)
# Remove options_update_listener.
hass.data[DOMAIN][entry.entry_id]["unsub_options_update_listener"]()
# hass.data[DOMAIN][entry.entry_id]["unsub_options_update_listener"]()

# Remove config entry from domain.
if unload_ok:
Expand Down
5 changes: 2 additions & 3 deletions custom_components/nysse/fetch_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ async def fetch_stop_points(has_id):

return sorted(stations, key=lambda item: item["label"])

except (OSError, KeyError) as err:
_LOGGER.error("Failed to fetch stops: %s", err)
return
except (OSError, KeyError):
return []


async def fetch_lines(stop):
Expand Down

0 comments on commit 6938766

Please sign in to comment.