home-assistant-ecosystem / home-assistant-cli

:computer: Command-line tool for Home Assistant
Other
446 stars 69 forks source link

Can't set name to "" #413

Open eikowagenknecht opened 8 months ago

eikowagenknecht commented 8 months ago

So I have some entities where I want to reset to the default HA names. Entities that have this have "" as "name" property in the output of hass-cli. But setting with

hass-cli --server "http://pi-homeassistant:8123" --token "12345" entity rename switch.entity_12345 --name ""

failt with Error: Option '--name' requires an argument.

I tried "null", $null, $false, "None" and some more variations, but couldn't get it to remove the name.