ha_mqtt_configd: Fix underscore handling in topics
This commit is contained in:
parent
c820614f44
commit
b1481de12c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def on_message(client, userdata, msg):
|
||||||
config = {
|
config = {
|
||||||
"dev": {
|
"dev": {
|
||||||
"name": topic[2].capitalize(),
|
"name": topic[2].capitalize(),
|
||||||
"suggested_area": topic[1].capitalize(),
|
"suggested_area": topic[1].capitalize().replace("_", " "),
|
||||||
"identifiers": [
|
"identifiers": [
|
||||||
uniqueid,
|
uniqueid,
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Reference in a new issue