Skip to content

Commit

Permalink
suggested changes from lbbrhzn#1242 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
scruysberghs committed Aug 5, 2024
1 parent a29ec33 commit eb56674
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/ocpp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
hass.data[DOMAIN][entry.entry_id] = central_sys

await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
entry.async_on_unload(entry.add_update_listener(async_reload_entry))
entry.async_on_unload(entry.add_update_listener(async_update_listener))

return True

Expand All @@ -112,7 +112,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
return unloaded


async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
async def async_update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Reload config entry."""
await async_unload_entry(hass, entry)
await async_setup_entry(hass, entry)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ ocpp==1.0.0
websockets==12.0
jsonschema==4.22.0
pre-commit
pytest-homeassistant-custom-component==0.13.136
pytest-homeassistant-custom-component==0.13.144
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability

0 comments on commit eb56674

Please sign in to comment.