mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add missing timeout to command_line platforms: cover, notify, switch (#38497)
* Add missing timeout to command_line platforms: cover, notify, switch * add timeout test for notify
This commit is contained in:
@@ -27,6 +27,7 @@ def rs(hass):
|
||||
"command_stop",
|
||||
"command_state",
|
||||
None,
|
||||
15,
|
||||
)
|
||||
|
||||
|
||||
@@ -45,7 +46,7 @@ def test_query_state_value(rs):
|
||||
assert "foo bar" == result
|
||||
assert mock_run.call_count == 1
|
||||
assert mock_run.call_args == mock.call(
|
||||
"runme", shell=True, # nosec # shell by design
|
||||
"runme", shell=True, timeout=15 # nosec # shell by design
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user