Skip to content

Commit

Permalink
Fix esphome entity ids in test (#96965)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Jul 20, 2023
1 parent 86d9d9c commit 71ca976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/components/esphome/test_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/components/esphome/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 71ca976

Please sign in to comment.