ha_mqtt_configd: Fix underscore handling in topics

This commit is contained in:
Timo Makinen 2025-04-20 14:28:26 +00:00
parent c820614f44
commit b1481de12c

View file

@ -23,7 +23,7 @@ def on_message(client, userdata, msg):
config = {
"dev": {
"name": topic[2].capitalize(),
"suggested_area": topic[1].capitalize(),
"suggested_area": topic[1].capitalize().replace("_", " "),
"identifiers": [
uniqueid,
],