Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
f11f7ac4
Unverified
Commit
f11f7ac4
authored
1 year ago
by
Erik Montnemery
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Adjust google_assistant tests which create devices (#98191)
parent
983ebeff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/components/google_assistant/test_smart_home.py
+5
-3
5 additions, 3 deletions
tests/components/google_assistant/test_smart_home.py
with
5 additions
and
3 deletions
tests/components/google_assistant/test_smart_home.py
+
5
−
3
View file @
f11f7ac4
...
...
@@ -39,7 +39,7 @@ from homeassistant.setup import async_setup_component
from
.
import
BASIC_CONFIG
,
MockConfig
from
tests.common
import
async_capture_events
from
tests.common
import
MockConfigEntry
,
async_capture_events
REQ_ID
=
"
ff36a3cc-ec34-11e6-b1a0-64510650abcf
"
...
...
@@ -251,10 +251,12 @@ async def test_sync_message(hass: HomeAssistant, registries) -> None:
@pytest.mark.parametrize
(
"
area_on_device
"
,
[
True
,
False
])
async
def
test_sync_in_area
(
area_on_device
,
hass
:
HomeAssistant
,
registries
)
->
None
:
"""
Test a sync message where room hint comes from area.
"""
entry
=
MockConfigEntry
()
entry
.
add_to_hass
(
hass
)
area
=
registries
.
area
.
async_create
(
"
Living Room
"
)
device
=
registries
.
device
.
async_get_or_create
(
config_entry_id
=
"
1234
"
,
config_entry_id
=
entry
.
entry_id
,
manufacturer
=
"
Someone
"
,
model
=
"
Some model
"
,
sw_version
=
"
Some Version
"
,
...
...
@@ -625,8 +627,8 @@ async def test_execute_times_out(
"""
Test an execute command which times out.
"""
orig_execute_limit
=
sh
.
EXECUTE_LIMIT
sh
.
EXECUTE_LIMIT
=
0.02
# Decrease timeout to 20ms
await
async_setup_component
(
hass
,
"
light
"
,
{
"
light
"
:
{
"
platform
"
:
"
demo
"
}})
await
async_setup_component
(
hass
,
"
homeassistant
"
,
{})
await
async_setup_component
(
hass
,
"
light
"
,
{
"
light
"
:
{
"
platform
"
:
"
demo
"
}})
await
hass
.
async_block_till_done
()
await
hass
.
services
.
async_call
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment