From 8c1a5f5329af874b331574053640e45b7fcdece8 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 20 Jan 2022 15:26:58 +0100 Subject: [PATCH] Fix errors when trying to enable Alexa (#64536) * Fix errors when trying to enable Alexa * Update homeassistant/components/cloud/alexa_config.py Co-authored-by: Franck Nijhof * Ran black Co-authored-by: Franck Nijhof --- homeassistant/components/cloud/alexa_config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/cloud/alexa_config.py b/homeassistant/components/cloud/alexa_config.py index d17d80f0516..50c2b85aabf 100644 --- a/homeassistant/components/cloud/alexa_config.py +++ b/homeassistant/components/cloud/alexa_config.py @@ -192,7 +192,10 @@ class CloudAlexaConfig(alexa_config.AbstractConfig): if self.should_report_state != self.is_reporting_states: if self.should_report_state: - await self.async_enable_proactive_mode() + with suppress( + alexa_errors.NoTokenAvailable, alexa_errors.RequireRelink + ): + await self.async_enable_proactive_mode() else: await self.async_disable_proactive_mode()