mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Strip trailing spaces from HomeKit names (#131971)
This commit is contained in:
parent
0d155c416a
commit
e8ef990e72
@ -255,6 +255,7 @@ def test_convert_to_float() -> None:
|
||||
def test_cleanup_name_for_homekit() -> None:
|
||||
"""Ensure name sanitize works as expected."""
|
||||
|
||||
assert cleanup_name_for_homekit("abc") == "abc"
|
||||
assert cleanup_name_for_homekit("abc ") == "abc"
|
||||
assert cleanup_name_for_homekit("a b c") == "a b c"
|
||||
assert cleanup_name_for_homekit("ab_c") == "ab c"
|
||||
|
Loading…
x
Reference in New Issue
Block a user