1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Correct sensor restore entity in modbus (#87563)

* Correct sensor restore entity.

* Review comments.
This commit is contained in:
jan iversen
2023-02-09 21:35:44 +01:00
committed by GitHub
parent cc564026fa
commit b9b5a279f2
2 changed files with 11 additions and 7 deletions

View File

@@ -894,7 +894,7 @@ async def test_wrap_sensor(hass, mock_do_cycle, expected):
@pytest.mark.parametrize(
"mock_test_state",
[(State(ENTITY_ID, "117"), State(f"{ENTITY_ID}_1", "119"))],
[(State(ENTITY_ID, "unknown"), State(f"{ENTITY_ID}_1", "119"))],
indirect=True,
)
@pytest.mark.parametrize(