Google Assistant: Track if request is local (#31226)
* Track if request is local * Cancel early if 2FA disabled * Allow disabling 2FA for ack * Do not mark devices with 2FA as reachable * Add request source to GA events
This commit is contained in:
parent
03954be12d
commit
8ceef72853
9 changed files with 99 additions and 19 deletions
|
@ -51,11 +51,15 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
REQ_ID = "ff36a3cc-ec34-11e6-b1a0-64510650abcf"
|
||||
|
||||
BASIC_DATA = helpers.RequestData(BASIC_CONFIG, "test-agent", REQ_ID, None)
|
||||
BASIC_DATA = helpers.RequestData(
|
||||
BASIC_CONFIG, "test-agent", const.SOURCE_CLOUD, REQ_ID, None
|
||||
)
|
||||
|
||||
PIN_CONFIG = MockConfig(secure_devices_pin="1234")
|
||||
|
||||
PIN_DATA = helpers.RequestData(PIN_CONFIG, "test-agent", REQ_ID, None)
|
||||
PIN_DATA = helpers.RequestData(
|
||||
PIN_CONFIG, "test-agent", const.SOURCE_CLOUD, REQ_ID, None
|
||||
)
|
||||
|
||||
|
||||
async def test_brightness_light(hass):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue