From 5a78684998746db3ee342623265835e47ee01761 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Wed, 26 Apr 2023 18:44:22 +0200 Subject: [PATCH] Fix large imap_content event warning by truncating the email text body to 2 KiB (#92066) --- homeassistant/components/imap/coordinator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/imap/coordinator.py b/homeassistant/components/imap/coordinator.py index 07b55dc4788..666a82c73d4 100644 --- a/homeassistant/components/imap/coordinator.py +++ b/homeassistant/components/imap/coordinator.py @@ -177,7 +177,7 @@ class ImapDataUpdateCoordinator(DataUpdateCoordinator[int | None]): "search": self.config_entry.data[CONF_SEARCH], "folder": self.config_entry.data[CONF_FOLDER], "date": message.date, - "text": message.text, + "text": message.text[:2048], "sender": message.sender, "subject": message.subject, "headers": message.headers,