Skip to content

Commit 58bacbb

Browse files
authored
Fix identifier generation for sub devices in ViCare (home-assistant#154330)
1 parent 82758f7 commit 58bacbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

homeassistant/components/vicare/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(
3131
model = device_config.getModel().replace("_", " ")
3232

3333
identifier = (
34-
f"{gateway_serial}_{device_serial.replace('zigbee-', 'zigbee_')}"
34+
f"{gateway_serial}_{device_serial.replace('-', '_')}"
3535
if device_serial is not None
3636
else f"{gateway_serial}_{device_id}"
3737
)

0 commit comments

Comments
 (0)