Command line switch stopped to work after HA update (Docker)

Before update it worked well more than year

- platform: command_line
      command_on: '/usr/bin/ssh -i my.key dangerd@localhost "/usr/bin/hidusb-relay-cmd on 5"'
      command_off: '/usr/bin/ssh -i my.key dangerd@localhost "/usr/bin/hidusb-relay-cmd off 5"'

Tried to run command from ssh:
/usr/bin/ssh -i my.key dangerd@localhost "/usr/bin/hidusb-relay-cmd on 5"
and it failed, replaced localhost to ip address and it worked:
/usr/bin/ssh -i my.key [email protected] "/usr/bin/hidusb-relay-cmd on 5"
but from HA interface it still doesn’t work…
What was changed after updates?