Skip to content

Commit 2550575

Browse files
authored
Use "Output" for Shelly RPC switch sub-device names (#158139)
1 parent 95a347d commit 2550575

File tree

5 files changed

+482
-429
lines changed

5 files changed

+482
-429
lines changed

homeassistant/components/shelly/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ def get_rpc_sub_device_name(
438438
return f"{device.name} Energy Meter {component_id}"
439439
if component == "em" and emeter_phase is not None:
440440
return f"{device.name} Phase {emeter_phase}"
441+
if component == "switch":
442+
return f"{device.name} Output {component_id}"
441443

442444
return f"{device.name} {component.title()} {component_id}"
443445

0 commit comments

Comments
 (0)