Command line sensor unknown state in 2023.4

Hi, I need help with command line sensor with ssh command. Since upgrade to 2023.4.x, it goes to unknown state very often and then it updates correctly again. I have automations that are sending notify on change, so I am getting a lot of messages.
I was able to replicate it with the following code, but it seems that it is happening only when I have multiple sensors with ssh to the same machine.

sensor:
  - platform: command_line
    name: hostname_test 
    command: "ssh -i .ssh/id_rsa_salt -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null <user>@<ip_address> hostname"
    scan_interval: 10
automation:
- alias: command_line hostname_test
  trigger:
    - platform: state
      entity_id: 
        - sensor.hostname_test6
      to: 'unknown'
  action:
    - service: persistent_notification.create
      data:
        message: "Error"
        title: >
          Test sensor is "unknown"!

When I downgrade back to 2023.3.6 all is working fine without any issues. I tried multiple times and downgrade fixes it every time. Any idea what has changed in this version and how could I fix it?