Make sure uuid has a valid name

This commit is contained in:
Luke Lashley
2025-12-03 16:33:13 -05:00
committed by GitHub
parent 9813d3e31c
commit 3e9149be0a
2 changed files with 2 additions and 2 deletions
@@ -29,7 +29,7 @@ async def async_setup_entry(
async_add_entities( async_add_entities(
RoborockMap( RoborockMap(
config_entry, config_entry,
f"{coord.duid_slug}_custom_map_{map_info.name}", f"{coord.duid_slug}_custom_map_{map_info.name or f'Map {map_info.map_flag}'}",
coord, coord,
coord.properties_api.home, coord.properties_api.home,
map_info.map_flag, map_info.map_flag,
@@ -8,5 +8,5 @@
"iot_class": "local_polling", "iot_class": "local_polling",
"issue_tracker": "https://github.com/Lash-L/RoborockCustomMap/issues", "issue_tracker": "https://github.com/Lash-L/RoborockCustomMap/issues",
"requirements": [], "requirements": [],
"version": "0.1.2" "version": "0.1.3"
} }