Open ildar170975 opened 1 month ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (input_number
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
input_number documentation input_number source (message by IssueLinks)
Both your other post & this one are probably because yaml code has to be reloaded. Try reloading and then check the modified at attribute.
yaml code has to be reloaded
Ofc the yaml was reloaded as an obvious step. It was not only reloaded when I changed UI settings.
Just in case - added about yaml reload in to the 1st post.
~I think~ yaml defined helpers will never update the "modified at" value, since there configuration is not tracked between the reloads and reboots, so HA can not determine if it is the same as before
EDIT: Let me be a bit more clearly in this case
think yaml defined helpers will never update the "modified at" value
If we assume that this is true - we should not assume that this is CORRECT. In this case the whole shiny idea of adding "modify" is a useless toy. Just say officially in Docs that "modify" is only updated for UI-controlled entities.
The problem
Create an
input_number
in yaml:Reload "input_number" (Dev tools -> yaml). The created entity does have a
created_at
property set (which is correct):Edit a
max
attribute in yaml:Reload "input_number" (Dev tools -> yaml). The
modified_at value
is NOT changed (which is NOT correct).Open more-info and edit an area or add a label, or change
entity_id
:The
modified_at
value is changed (which is correct).Next, create an
input_number
in UI:The created entity does have a
created_at
property set (which is correct):Open more-info and edit an area or add a label, or change
entity_id
:The
modified_at
value is changed (which is correct).Open more-info and edit a
step
property:The
modified_at
value is NOT changed (which is NOT correct).What version of Home Assistant Core has the issue?
2024.8
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
input_number
Link to integration documentation on our website
https://www.home-assistant.io/integrations/input_number/
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