diff --git a/README.md b/README.md
index b130708a..2e537aa7 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
[](https://github.com/aneisch/home-assistant-config/actions)
[](https://github.com/aneisch/home-assistant-config/commits/master)
[](https://github.com/aneisch/home-assistant-config/graphs/commit-activity)
-[-brightgreen)](https://github.com/home-assistant/home-assistant/releases/latest)
+[-brightgreen)](https://github.com/home-assistant/home-assistant/releases/latest)
@@ -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: