mirror of
https://github.com/home-assistant/core.git
synced 2026-05-04 11:54:35 +02:00
Remove Shelly presencezone component from VIRTUAL_COMPONENTS tuple (#153740)
This commit is contained in:
@@ -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"]},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user