mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Avoid use of hass.helpers
in plugwise test (#114534)
This commit is contained in:
parent
0238c2ea9e
commit
ecf286cd81
@ -4,6 +4,7 @@ from unittest.mock import MagicMock
|
|||||||
|
|
||||||
from homeassistant.const import STATE_OFF, STATE_ON
|
from homeassistant.const import STATE_OFF, STATE_ON
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
from homeassistant.helpers.entity_component import async_update_entity
|
||||||
|
|
||||||
from tests.common import MockConfigEntry
|
from tests.common import MockConfigEntry
|
||||||
|
|
||||||
@ -45,9 +46,7 @@ async def test_anna_climate_binary_sensor_change(
|
|||||||
assert state
|
assert state
|
||||||
assert state.state == STATE_ON
|
assert state.state == STATE_ON
|
||||||
|
|
||||||
await hass.helpers.entity_component.async_update_entity(
|
await async_update_entity(hass, "binary_sensor.opentherm_dhw_state")
|
||||||
"binary_sensor.opentherm_dhw_state"
|
|
||||||
)
|
|
||||||
|
|
||||||
state = hass.states.get("binary_sensor.opentherm_dhw_state")
|
state = hass.states.get("binary_sensor.opentherm_dhw_state")
|
||||||
assert state
|
assert state
|
||||||
|
Loading…
x
Reference in New Issue
Block a user