mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Cloud to avoid setting up Alexa/Google during setup phase (#66676)
This commit is contained in:
parent
b42676370c
commit
499081df86
@ -187,7 +187,11 @@ class CloudAlexaConfig(alexa_config.AbstractConfig):
|
|||||||
self._alexa_sync_unsub = None
|
self._alexa_sync_unsub = None
|
||||||
return
|
return
|
||||||
|
|
||||||
if ALEXA_DOMAIN not in self.hass.config.components and self.enabled:
|
if (
|
||||||
|
ALEXA_DOMAIN not in self.hass.config.components
|
||||||
|
and self.enabled
|
||||||
|
and self.hass.is_running
|
||||||
|
):
|
||||||
await async_setup_component(self.hass, ALEXA_DOMAIN, {})
|
await async_setup_component(self.hass, ALEXA_DOMAIN, {})
|
||||||
|
|
||||||
if self.should_report_state != self.is_reporting_states:
|
if self.should_report_state != self.is_reporting_states:
|
||||||
|
@ -181,7 +181,11 @@ class CloudGoogleConfig(AbstractConfig):
|
|||||||
self.async_disable_local_sdk()
|
self.async_disable_local_sdk()
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.enabled and GOOGLE_DOMAIN not in self.hass.config.components:
|
if (
|
||||||
|
self.enabled
|
||||||
|
and GOOGLE_DOMAIN not in self.hass.config.components
|
||||||
|
and self.hass.is_running
|
||||||
|
):
|
||||||
await async_setup_component(self.hass, GOOGLE_DOMAIN, {})
|
await async_setup_component(self.hass, GOOGLE_DOMAIN, {})
|
||||||
|
|
||||||
if self.should_report_state != self.is_reporting_state:
|
if self.should_report_state != self.is_reporting_state:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user