Remove Shelly presencezone component from VIRTUAL_COMPONENTS tuple (#153740)

This commit is contained in:
Maciej Bieniek
2025-10-05 12:46:42 +02:00
committed by GitHub
parent 6f9e6909ce
commit ca5c0a759f
2 changed files with 2 additions and 10 deletions
+1 -9
View File
@@ -268,15 +268,7 @@ DEVICES_WITHOUT_FIRMWARE_CHANGELOG = (
CONF_GEN = "gen"
VIRTUAL_COMPONENTS = (
"boolean",
"button",
"enum",
"input",
"number",
"presencezone",
"text",
)
VIRTUAL_COMPONENTS = ("boolean", "button", "enum", "input", "number", "text")
VIRTUAL_COMPONENTS_MAP = {
"binary_sensor": {"types": ["boolean"], "modes": ["label"]},
"button": {"types": ["button"], "modes": ["button"]},
+1 -1
View File
@@ -402,7 +402,7 @@ def get_rpc_channel_name(device: RpcDevice, key: str) -> str | None:
if key in device.config and key != "em:0":
# workaround for Pro 3EM, we don't want to get name for em:0
if component_name := device.config[key].get("name"):
if component in (*VIRTUAL_COMPONENTS, "script"):
if component in (*VIRTUAL_COMPONENTS, "presencezone", "script"):
return cast(str, component_name)
return cast(str, component_name) if instances == 1 else None