Skip to content

Commit

Permalink
Fix ValueError on reload (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Feb 15, 2021
2 parents 6194922 + faf4bb3 commit d07a91e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/mail_and_packages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ async def update_listener(hass: HomeAssistant, config_entry: ConfigEntry) -> Non

_LOGGER.debug("Attempting to reload sensors from the %s integration", DOMAIN)

if config_entry.data == config_entry.options:
_LOGGER.debug("No changes detected not reloading sensors.")
return

new_data = config_entry.options.copy()

hass.config_entries.async_update_entry(
Expand Down

0 comments on commit d07a91e

Please sign in to comment.