From efce7a88586834211db592bca78e7a40b31a7929 Mon Sep 17 00:00:00 2001 From: Andrew Neisch Date: Sat, 7 Oct 2023 16:46:15 -0500 Subject: [PATCH] Changes --- README.md | 4 ++-- configuration.yaml | 3 +++ custom_components/mail_and_packages/const.py | 2 +- custom_components/mail_and_packages/helpers.py | 5 +++++ custom_components/mail_and_packages/manifest.json | 2 +- extras/docker-compose/homeassistant/docker-compose.yml | 2 +- extras/docker-compose/unified/docker-compose.yml | 2 +- packages/leak_detection.yaml | 4 ++-- 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b130708a..2e537aa7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build Status](https://github.com/aneisch/home-assistant-config/actions/workflows/check-ha-release-compatibility.yml/badge.svg)](https://github.com/aneisch/home-assistant-config/actions) [![GitHub last commit](https://img.shields.io/github/last-commit/aneisch/home-assistant-config)](https://github.com/aneisch/home-assistant-config/commits/master) [![GitHub commit activity](https://img.shields.io/github/commit-activity/y/aneisch/home-assistant-config)](https://github.com/aneisch/home-assistant-config/graphs/commit-activity) -[![HA Version](https://img.shields.io/badge/Running%20Home%20Assistant-2023.10.0%20(Latest)-brightgreen)](https://github.com/home-assistant/home-assistant/releases/latest) +[![HA Version](https://img.shields.io/badge/Running%20Home%20Assistant-2023.10.1%20(Latest)-brightgreen)](https://github.com/home-assistant/home-assistant/releases/latest)
Buy Me A Coffee @@ -56,7 +56,7 @@ Also using Grafana/Influx for graphing, both running in Docker containers on NUC Description | value -- | -- Lines of ESPHome YAML | 2467 -Lines of Home Assistant YAML | 8116 +Lines of Home Assistant YAML | 8119 [Integrations](https://www.home-assistant.io/integrations/) in use | 52 Zigbee devices in [`zha`](https://www.home-assistant.io/integrations/zha/) | 26 Z-Wave devices in [`zwave_js`](https://www.home-assistant.io/integrations/zwave_js/) | 37 diff --git a/configuration.yaml b/configuration.yaml index 7aad16f0..acf6cd2c 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -37,6 +37,7 @@ homeassistant: allowlist_external_dirs: - "/tmp" - "/config" + - "/tmp" allowlist_external_urls: - "http://localhost:8123/api/frigate/notifications" media_dirs: @@ -69,6 +70,8 @@ folder_watcher: - folder: '/tmp' patterns: - "database.sqlite" + - folder: '/tmp' + patterns: - "config.yml" monitor_docker: diff --git a/custom_components/mail_and_packages/const.py b/custom_components/mail_and_packages/const.py index d8f6192b..f0be563d 100644 --- a/custom_components/mail_and_packages/const.py +++ b/custom_components/mail_and_packages/const.py @@ -12,7 +12,7 @@ DOMAIN = "mail_and_packages" DOMAIN_DATA = f"{DOMAIN}_data" -VERSION = "0.3.18" +VERSION = "0.3.19" ISSUE_URL = "http://github.com/moralmunky/Home-Assistant-Mail-And-Packages" PLATFORM = "sensor" PLATFORMS = ["binary_sensor", "camera", "sensor"] diff --git a/custom_components/mail_and_packages/helpers.py b/custom_components/mail_and_packages/helpers.py index b6a57ad6..46d4eaeb 100644 --- a/custom_components/mail_and_packages/helpers.py +++ b/custom_components/mail_and_packages/helpers.py @@ -1378,6 +1378,11 @@ def get_items( ) else: email_subject = decode_header(msg["subject"])[0][0] + + if not isinstance(email_subject, str): + _LOGGER.debug("Converting subject to string.") + email_subject = email_subject.decode("utf-8", "ignore") + _LOGGER.debug("Amazon Subject: %s", str(email_subject)) pattern = re.compile(r"[0-9]{3}-[0-9]{7}-[0-9]{7}") diff --git a/custom_components/mail_and_packages/manifest.json b/custom_components/mail_and_packages/manifest.json index 8edbf53e..493385c2 100644 --- a/custom_components/mail_and_packages/manifest.json +++ b/custom_components/mail_and_packages/manifest.json @@ -15,5 +15,5 @@ "Pillow>=9.0" ], "iot_class": "cloud_polling", - "version": "0.3.18" + "version": "0.3.19" } \ No newline at end of file diff --git a/extras/docker-compose/homeassistant/docker-compose.yml b/extras/docker-compose/homeassistant/docker-compose.yml index 0011ced5..3cc64078 100644 --- a/extras/docker-compose/homeassistant/docker-compose.yml +++ b/extras/docker-compose/homeassistant/docker-compose.yml @@ -25,7 +25,7 @@ services: - /sys/class/hwmon/hwmon1/temp1_input:/sys/class/thermal/thermal_zone0/temp:ro - /etc/localtime:/etc/localtime:ro - /frigate-drive:/frigate - - /opt/frigate/config.yml:/tmp/config.yml:ro + - /opt/frigate:/etc/frigate:ro devices: - /dev/zigbee - /dev/usb_modem_sim7080g:/dev/cellular_modem diff --git a/extras/docker-compose/unified/docker-compose.yml b/extras/docker-compose/unified/docker-compose.yml index ff62d8d6..02411186 100644 --- a/extras/docker-compose/unified/docker-compose.yml +++ b/extras/docker-compose/unified/docker-compose.yml @@ -26,7 +26,7 @@ services: - /sys/class/hwmon/hwmon1/temp1_input:/sys/class/thermal/thermal_zone0/temp:ro - /etc/localtime:/etc/localtime:ro - /frigate-drive:/frigate - - /opt/frigate/config.yml:/tmp/config.yml:ro + - /opt/frigate:/etc/frigate:ro devices: - /dev/zigbee - /dev/usb_modem_sim7080g:/dev/cellular_modem diff --git a/packages/leak_detection.yaml b/packages/leak_detection.yaml index 377cb886..5ac88848 100644 --- a/packages/leak_detection.yaml +++ b/packages/leak_detection.yaml @@ -48,8 +48,8 @@ automation: and is_state('switch.maples_zone', 'off') and is_state('group.trackers', 'not_home' ) and is_state('input_boolean.guest_mode', 'off') - and not (now().hour == 12 and now.minute in [0,1,2,3,4,5]) - and not (now().hour == 10 and now.minute in [16,17,18,19,20,21]) }}" + and not (now().hour == 12 and now().minute in [0,1,2,3,4,5,6]) + and not (now().hour == 10 and now().minute in [16,17,18,19,20,21]) }}" then: - service: script.notify_wrapper data: