Cloud: Add Alexa report state (#24536)
* Cloud: Add Alexa report state * Lint * Lint * Only track state changes when we are logged in
This commit is contained in:
parent
5ab1996d3f
commit
a02b69db38
17 changed files with 207 additions and 33 deletions
|
@ -87,7 +87,9 @@ async def async_api_accept_grant(hass, config, directive, context):
|
|||
|
||||
if config.supports_auth:
|
||||
await config.async_accept_grant(auth_code)
|
||||
await async_enable_proactive_mode(hass, config)
|
||||
|
||||
if config.should_report_state:
|
||||
await async_enable_proactive_mode(hass, config)
|
||||
|
||||
return directive.response(
|
||||
name='AcceptGrant.Response',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue