Skip to content

Commit 3838712

Browse files
authored
Fix entity_id formatting by replacing spaces
Replace spaces with underscores in entity_id components.
1 parent e73eacb commit 3838712

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

custom_components/redback_tech/number.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def __init__(self, coordinator, entity_key):
5454
"number.rb"
5555
+ self.ent_id[:4]
5656
+ "_"
57-
+ self.ent_id[-3:].lower()
57+
+ self.ent_id[-3:].lower().replace(" ", "_")
5858
+ "_"
59-
+ ENTITY_DETAILS[self.ent_key[7:]]["name"]
59+
+ ENTITY_DETAILS[self.ent_key[7:]]["name"].lower().replace(" ", "_")
6060
)
6161
LOGGER.debug("number_data1: %s", self.ent_data)
6262
LOGGER.debug("number_data2: %s", self.ent_id)

0 commit comments

Comments
 (0)