The friendly name of commands is copied from the actual name always, therefore it is not modifiable.
Steps to reproduce
NGL, idk
What I did: 1. Create new custom command 2. Named it
different
different
with the command
cmd
cmd
3. Clicked store & activate 4. Error box popped up asking me to check the logs
Log snippet
[FTL] [PROGRAM] FirstChanceException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List`1.RemoveAt(Int32 index) at HASS.Agent.Commands.CommandsManager.StoreAsync(List`1 commands, List`1 toBeDeletedCommands) in D:\Programowanie\Visual CS\Projects\HASS.Agent.Staging\src\HASS.Agent.Staging\HASS.Agent\Commands\CommandsManager.cs:line 02023-12-11 12:20:24.231 +11:00 [FTL] [COMMANDSMANAGER] Error while storing: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List`1.RemoveAt(Int32 index) at HASS.Agent.Commands.CommandsManager.StoreAsync(List`1 commands, List`1 toBeDeletedCommands) in D:\Programowanie\Visual CS\Projects\HASS.Agent.Staging\src\HASS.Agent.Staging\HASS.Agent\Commands\CommandsManager.cs:line 0
[FTL] [PROGRAM] FirstChanceException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List`1.RemoveAt(Int32 index) at HASS.Agent.Commands.CommandsManager.StoreAsync(List`1 commands, List`1 toBeDeletedCommands) in D:\Programowanie\Visual CS\Projects\HASS.Agent.Staging\src\HASS.Agent.Staging\HASS.Agent\Commands\CommandsManager.cs:line 02023-12-11 12:20:24.231 +11:00 [FTL] [COMMANDSMANAGER] Error while storing: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List`1.RemoveAt(Int32 index) at HASS.Agent.Commands.CommandsManager.StoreAsync(List`1 commands, List`1 toBeDeletedCommands) in D:\Programowanie\Visual CS\Projects\HASS.Agent.Staging\src\HASS.Agent.Staging\HASS.Agent\Commands\CommandsManager.cs:line 0
Solution
ok, I have a fix for this and in the meantime found 2 more bugs