mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 16:57:19 +00:00
Fix esphome entity ids in test (#96965)
This commit is contained in:
parent
86d9d9cea5
commit
71ca976d58
@ -118,7 +118,7 @@ async def test_generic_number_with_unit_of_measurement_as_empty_string(
|
||||
user_service=user_service,
|
||||
states=states,
|
||||
)
|
||||
state = hass.states.get("number.test_mynumber")
|
||||
state = hass.states.get("number.test_my_number")
|
||||
assert state is not None
|
||||
assert state.state == "42"
|
||||
assert ATTR_UNIT_OF_MEASUREMENT not in state.attributes
|
||||
|
@ -298,7 +298,7 @@ async def test_generic_numeric_sensor_empty_string_uom(
|
||||
user_service=user_service,
|
||||
states=states,
|
||||
)
|
||||
state = hass.states.get("sensor.test_mysensor")
|
||||
state = hass.states.get("sensor.test_my_sensor")
|
||||
assert state is not None
|
||||
assert state.state == "123"
|
||||
assert ATTR_UNIT_OF_MEASUREMENT not in state.attributes
|
||||
|
Loading…
x
Reference in New Issue
Block a user