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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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(