Make reproduce state use platform instead of rely on function (#25856)
* Make reproduce state use platform instead of rely on function * Fix types * address comment Martin.
This commit is contained in:
parent
ab7db5fbd0
commit
cf90e49b50
11 changed files with 26 additions and 21 deletions
|
@ -53,13 +53,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." "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." "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