Open NoRi2909 opened 3 weeks ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (switch_as_x
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
switch_as_x documentation switch_as_x source (message by IssueLinks)
The problem
When you create a Helper of type 'Change device type of a switch' you get the following dialog:
For Invert state it says: "… only supported for cover, lock and valve."
But the New Type popup right below also offers fan, light and siren in addition. This is misleading as the order of the UI elements contradicts this. They should influence each other top to bottom and left to right.
The Invert state toggle should be placed below the New Type popup. This should then disable or hide the toggle if an unsupported type is selected, and switch the explanation.
The entity dialog already does this perfectly and its behavior just needs to be copied over to the creation dialog:
To reproduce create a 'Change device type of a switch' , then open its settings dialog. There everything behaves correctly.
What version of Home Assistant Core has the issue?
core-2024.11.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Change device type of a switch
Link to integration documentation on our website
https://www.home-assistant.io/integrations/switch_as_x
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response