We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 912c1a1 commit 6938766Copy full SHA for 6938766
custom_components/nysse/__init__.py
@@ -44,7 +44,7 @@ async def async_unload_entry(
44
)
45
46
# Remove options_update_listener.
47
- hass.data[DOMAIN][entry.entry_id]["unsub_options_update_listener"]()
+ # hass.data[DOMAIN][entry.entry_id]["unsub_options_update_listener"]()
48
49
# Remove config entry from domain.
50
if unload_ok:
custom_components/nysse/fetch_api.py
@@ -33,9 +33,8 @@ async def fetch_stop_points(has_id):
33
34
return sorted(stations, key=lambda item: item["label"])
35
36
- except (OSError, KeyError) as err:
37
- _LOGGER.error("Failed to fetch stops: %s", err)
38
- return
+ except (OSError, KeyError):
+ return []
39
40
41
async def fetch_lines(stop):
0 commit comments