mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
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 <git@frenck.dev> * Ran black Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
e59510f0ce
commit
8c1a5f5329
@ -192,7 +192,10 @@ class CloudAlexaConfig(alexa_config.AbstractConfig):
|
|||||||
|
|
||||||
if self.should_report_state != self.is_reporting_states:
|
if self.should_report_state != self.is_reporting_states:
|
||||||
if self.should_report_state:
|
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:
|
else:
|
||||||
await self.async_disable_proactive_mode()
|
await self.async_disable_proactive_mode()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user