Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sopelj committed Feb 3, 2024
1 parent 788d333 commit 01e5c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ async def test_setup_update_temp_preset(
entity = entity_registry.async_get(entity_id)
assert entity
temp_unit_state = hass.states.get(entity_id)
assert temp_unit_state.state == "Latte"
assert temp_unit_state.state == "latte"

with patch.object(mock_mug, "set_target_temp") as mock_set:
await hass.services.async_call(
"select",
"select_option",
{ATTR_ENTITY_ID: entity_id, "option": "Cappuccino"},
{ATTR_ENTITY_ID: entity_id, "option": "cappuccino"},
blocking=True,
)
mock_set.assert_called_once_with(56)
Expand Down

0 comments on commit 01e5c35

Please sign in to comment.