Skip to content

Commit

Permalink
Update helpers.py to explicitly fetch usps_mail_delivered
Browse files Browse the repository at this point in the history
  • Loading branch information
gpeavy authored and gpeavy committed Aug 9, 2024
1 parent 4a39728 commit f269d58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/mail_and_packages/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ def process_emails(hass: HomeAssistant, config: ConfigEntry) -> dict:
except Exception as err:
_LOGGER.error("Error updating sensor: %s reason: %s", sensor, err)

# Update usps_mail_delivered
try:
fetch(hass, config, account, data, "usps_mail_delivered")
except Exception as err:
_LOGGER.error("Error updating sensor: %s reason: %s", "usps_mail_delivered", err)

# Copy image file to www directory if enabled
if config.get(CONF_ALLOW_EXTERNAL):
copy_images(hass, config)
Expand Down

0 comments on commit f269d58

Please sign in to comment.