Skip to content

shell_command variables not working after 2025.2.0 update #137535

Description

@pickonedev

The problem

Hi!

I have this situation:

a shell_command:
tablets_adb_pair: adb pair {{argument1}}:{{argument2}} {{argument3}}

a script:

action: shell_command.tablets_adb_pair
metadata: {}
data:
  argument1: "{{ states('sensor.tablets_ip_select') }}"
  argument2: "{{ states('input_text.tablets_adb_pair_port') }}"
  argument3: "{{ states('input_text.tablets_adb_pair_code') }}"

an automation which runs the script after all the values from the arguments, are valid.

Before 2025.2.0 this was working flawless, now, I get this into the logs and no functionality...

Logger: homeassistant.components.shell_command
Source: /usr/src/homeassistant/homeassistant/components/shell_command/__init__.py:129
integration: Shell Command ([documentation](https://www.home-assistant.io/integrations/shell_command), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+shell_command%22))
First occurred: 11:52:42 (1 occurrences)
Last logged: 11:52:42
Error running command: `adb pair {{argument1}}:{{argument2}} {{argument3}}`, return code: 1

NoneType: None

What version of Home Assistant Core has the issue?

core-2025.2.0

What was the last working version of Home Assistant Core?

core-2025.1.x (as far as I remeber, but could be around 2024.x.x)

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions