From 1c25de0e9264704260c2195ef47a266626eec818 Mon Sep 17 00:00:00 2001 From: RogerSelwyn Date: Mon, 20 May 2024 09:14:01 +0100 Subject: [PATCH] maint: Add extra debugging --- custom_components/o365/helpers/coordinator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/o365/helpers/coordinator.py b/custom_components/o365/helpers/coordinator.py index eaf4273..b89d0a2 100644 --- a/custom_components/o365/helpers/coordinator.py +++ b/custom_components/o365/helpers/coordinator.py @@ -489,6 +489,8 @@ async def _async_get_configured_mail_folder( self, mail_folder_conf, mailbox, sensor_type ): mail_folder = mailbox + _LOGGER.debug("Get folder %s - start", mail_folder_conf) + for folder in mail_folder_conf.split("/"): mail_folder = await self.hass.async_add_executor_job( ft.partial( @@ -496,6 +498,7 @@ async def _async_get_configured_mail_folder( folder_name=folder, ) ) + _LOGGER.debug("Get folder %s - process - %s", mail_folder_conf, mail_folder) if not mail_folder: _LOGGER.error( "Folder - %s - not found from %s config entry - %s - entity not created", @@ -505,6 +508,7 @@ async def _async_get_configured_mail_folder( ) return None + _LOGGER.debug("Get folder %s - finish ", mail_folder_conf) return mail_folder async def _async_update_data(self):