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:
Paulus Schoutsen 2019-08-11 20:03:21 -07:00 committed by GitHub
parent ab7db5fbd0
commit cf90e49b50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 26 additions and 21 deletions

View file

@ -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)