mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix an extra quote typo in the percentage util (#87161)
This commit is contained in:
parent
25cfa8afdd
commit
934bb3e0c1
@ -22,7 +22,7 @@ def ordered_list_item_to_percentage(ordered_list: list[_T], item: _T) -> int:
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
if item not in ordered_list:
|
if item not in ordered_list:
|
||||||
raise ValueError(f'The item "{item}"" is not in "{ordered_list}"')
|
raise ValueError(f'The item "{item}" is not in "{ordered_list}"')
|
||||||
|
|
||||||
list_len = len(ordered_list)
|
list_len = len(ordered_list)
|
||||||
list_position = ordered_list.index(item) + 1
|
list_position = ordered_list.index(item) + 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user