Fix esphome entity ids in test (#96965)

This commit is contained in:
J. Nick Koston 2023-07-20 14:05:08 -05:00 committed by GitHub
parent 86d9d9cea5
commit 71ca976d58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ async def test_generic_number_with_unit_of_measurement_as_empty_string(
user_service=user_service, user_service=user_service,
states=states, states=states,
) )
state = hass.states.get("number.test_mynumber") state = hass.states.get("number.test_my_number")
assert state is not None assert state is not None
assert state.state == "42" assert state.state == "42"
assert ATTR_UNIT_OF_MEASUREMENT not in state.attributes assert ATTR_UNIT_OF_MEASUREMENT not in state.attributes

View File

@ -298,7 +298,7 @@ async def test_generic_numeric_sensor_empty_string_uom(
user_service=user_service, user_service=user_service,
states=states, states=states,
) )
state = hass.states.get("sensor.test_mysensor") state = hass.states.get("sensor.test_my_sensor")
assert state is not None assert state is not None
assert state.state == "123" assert state.state == "123"
assert ATTR_UNIT_OF_MEASUREMENT not in state.attributes assert ATTR_UNIT_OF_MEASUREMENT not in state.attributes