Skip to content

Commit 6938766

Browse files
committed
Fix integration unloading
1 parent 912c1a1 commit 6938766

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

custom_components/nysse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def async_unload_entry(
4444
)
4545
)
4646
# Remove options_update_listener.
47-
hass.data[DOMAIN][entry.entry_id]["unsub_options_update_listener"]()
47+
# hass.data[DOMAIN][entry.entry_id]["unsub_options_update_listener"]()
4848

4949
# Remove config entry from domain.
5050
if unload_ok:

custom_components/nysse/fetch_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ async def fetch_stop_points(has_id):
3333

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

36-
except (OSError, KeyError) as err:
37-
_LOGGER.error("Failed to fetch stops: %s", err)
38-
return
36+
except (OSError, KeyError):
37+
return []
3938

4039

4140
async def fetch_lines(stop):

0 commit comments

Comments
 (0)