From e5d5440385718e9d965881a26adddb886f6d18c1 Mon Sep 17 00:00:00 2001 From: Robert Hillis Date: Mon, 9 Oct 2023 23:35:29 -0400 Subject: [PATCH] Fix Slack type error for file upload (#101720) Fix regression --- homeassistant/components/slack/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/slack/notify.py b/homeassistant/components/slack/notify.py index deba0796750..aae2846503d 100644 --- a/homeassistant/components/slack/notify.py +++ b/homeassistant/components/slack/notify.py @@ -166,7 +166,7 @@ class SlackNotificationService(BaseNotificationService): filename=filename, initial_comment=message, title=title or filename, - thread_ts=thread_ts, + thread_ts=thread_ts or "", ) except (SlackApiError, ClientError) as err: _LOGGER.error("Error while uploading file-based message: %r", err)