Removal of extraneous parenthesis in tests (#33670)
* Removal of extraneous parenthesis * Process review suggestions * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
61b4d1e8de
commit
528c7f4871
7 changed files with 17 additions and 25 deletions
|
@ -54,13 +54,13 @@ def test_async_track_states(hass):
|
|||
def test_call_to_component(hass):
|
||||
"""Test calls to components state reproduction functions."""
|
||||
with patch(
|
||||
("homeassistant.components.media_player.reproduce_state.async_reproduce_states")
|
||||
"homeassistant.components.media_player.reproduce_state.async_reproduce_states"
|
||||
) as media_player_fun:
|
||||
media_player_fun.return_value = asyncio.Future()
|
||||
media_player_fun.return_value.set_result(None)
|
||||
|
||||
with patch(
|
||||
("homeassistant.components.climate.reproduce_state.async_reproduce_states")
|
||||
"homeassistant.components.climate.reproduce_state.async_reproduce_states"
|
||||
) as climate_fun:
|
||||
climate_fun.return_value = asyncio.Future()
|
||||
climate_fun.return_value.set_result(None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue