Skip to content

Commit 40fdf12

Browse files
authored
Fix string interpolation in local_todo error messages (home-assistant#153580)
Co-authored-by: dollaransh17 <[email protected]>
1 parent 3939a80 commit 40fdf12

File tree

1 file changed

+2
-2
lines changed
  • homeassistant/components/local_todo

1 file changed

+2
-2
lines changed

homeassistant/components/local_todo/todo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ async def async_move_todo_item(
196196
item_idx: dict[str, int] = {itm.uid: idx for idx, itm in enumerate(todos)}
197197
if uid not in item_idx:
198198
raise HomeAssistantError(
199-
"Item '{uid}' not found in todo list {self.entity_id}"
199+
f"Item '{uid}' not found in todo list {self.entity_id}"
200200
)
201201
if previous_uid and previous_uid not in item_idx:
202202
raise HomeAssistantError(
203-
"Item '{previous_uid}' not found in todo list {self.entity_id}"
203+
f"Item '{previous_uid}' not found in todo list {self.entity_id}"
204204
)
205205
dst_idx = item_idx[previous_uid] + 1 if previous_uid else 0
206206
src_idx = item_idx[uid]

0 commit comments

Comments
 (0)