Move freedompro coordinator to separate file (#95360)
* Move coordinator to separate file for freedompro * Move coordinator to separate file for freedompro
This commit is contained in:
parent
db01aecb02
commit
8bbb396048
19 changed files with 89 additions and 78 deletions
|
@ -66,7 +66,7 @@ async def test_climate_get_state(hass: HomeAssistant, init_integration) -> None:
|
|||
states_response[0]["state"]["currentTemperature"] = 20
|
||||
states_response[0]["state"]["targetTemperature"] = 21
|
||||
with patch(
|
||||
"homeassistant.components.freedompro.get_states",
|
||||
"homeassistant.components.freedompro.coordinator.get_states",
|
||||
return_value=states_response,
|
||||
):
|
||||
async_fire_time_changed(hass, utcnow() + timedelta(hours=2))
|
||||
|
@ -174,7 +174,7 @@ async def test_climate_set_temperature(hass: HomeAssistant, init_integration) ->
|
|||
states_response[0]["state"]["currentTemperature"] = 20
|
||||
states_response[0]["state"]["targetTemperature"] = 21
|
||||
with patch(
|
||||
"homeassistant.components.freedompro.get_states",
|
||||
"homeassistant.components.freedompro.coordinator.get_states",
|
||||
return_value=states_response,
|
||||
):
|
||||
async_fire_time_changed(hass, utcnow() + timedelta(hours=2))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue