Platform command_line does not generate unique IDs

Thanks to @petro in WTH why do we need to restart HA core so much? - #19 by petro (didn’t want to capture that topic so here’s a dedicated one) I finally managed to avoid creating “sensor.something_2” and “sensor.something_3” entities etc. after every reload of command_line sensors in the dev-tools section.

So now every command_line sensor has an unique_id, e. g.:

  - platform: command_line
    name: Statistics Devices Integration Shelly
    unique_id: 6f03a5d6-b32c-473d-a21b-69fd82ed4b4d
    ...

Unfortunately when reloading command line sensors I get this in the HA log:

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:598
Integration: Sensor (documentation, issues)
First occurred: 18:09:38 (24 occurrences)
Last logged: 18:10:36

Platform command_line does not generate unique IDs. ID 6f03a5d6-b32c-473d-a21b-69fd82ed4b4d already exists - ignoring sensor.statistics_devices_integration_shelly
Platform command_line does not generate unique IDs. ID b5b46f06-23ca-4a31-8b53-52e34d56aa67 already exists - ignoring sensor.statistics_devices_integration_mobileapp
Platform command_line does not generate unique IDs. ID a394d0b9-6e6a-4cc5-b65e-f0f8d807c70f already exists - ignoring sensor.statistics_devices_enabled
Platform command_line does not generate unique IDs. ID a70a1cb4-fbe0-4974-a355-bb0b777070e3 already exists - ignoring sensor.statistics_blueprints
Platform command_line does not generate unique IDs. ID 2af57d9b-f3cd-46fa-9aeb-ae5d046926b1 already exists - ignoring sensor.statistics_devices_integration_ipp

Now I really don’t get what’s the problem.
I mean, those command_line sensors are a total problem, basically and I hate using them just because they behave often strange just like with this issue… but how to fix this unique IDs thing?

Sounds like a bug, I’d write it up.

Do you mean I (?) should post it to Issues · home-assistant/core · GitHub ?

yep