You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my HASS setup, I've got a badge sitting at the top of my dashboard that displays a count of the total number of available updates that are pending. This count is based on the following template sensor
- sensor:
- name: "Available updates count"
unique_id: "available-updates-count"
state: |
{%- set count = namespace(value=0) -%}
{%- for st in states.update -%}
{%- if st.attributes['installed_version'] != st.attributes['latest_version'] -%}
{%- set count.value = count.value + 1 -%}
{%- endif -%}
{%- endfor -%}
{{ count.value -}}
On several occasions now, I've found myself in a situation where that count is > 0, but when I go to the settings page, I see no update available. My setup is currently in just such a state, so I've just modified the above template in developer tools to print out the actual update that is pending; this is the output I get:
Neither of these updates are displayed in the normal place at the top of the settings page. In both cases, it looks like there is something unusual about the value of the latest_version field, which suggests that HASS is using conditional logic that has decided to exclude these updates:
Mealie: installed_version=v2.4.2, latest_version=v2.4.2-3 (the -3 at the end)
Card-mod: installed_version=v3.5.0, latest_version=v3.4.4 (latest_version is lower than installed version)
This is the second time I've noticed this, and the first time it happened, the result of this investigation was similar. The first feels clearcut as a bug and something should be displayed. In the case of the second one, even though its not a later version (did 3.5.0 get removed?), I feel that something should be displayed in settings?
What version of Home Assistant Core has the issue?
core-2025.1.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
The text was updated successfully, but these errors were encountered:
The problem
In my HASS setup, I've got a badge sitting at the top of my dashboard that displays a count of the total number of available updates that are pending. This count is based on the following template sensor
On several occasions now, I've found myself in a situation where that count is > 0, but when I go to the settings page, I see no update available. My setup is currently in just such a state, so I've just modified the above template in developer tools to print out the actual update that is pending; this is the output I get:
Neither of these updates are displayed in the normal place at the top of the settings page. In both cases, it looks like there is something unusual about the value of the
latest_version
field, which suggests that HASS is using conditional logic that has decided to exclude these updates:This is the second time I've noticed this, and the first time it happened, the result of this investigation was similar. The first feels clearcut as a bug and something should be displayed. In the case of the second one, even though its not a later version (did 3.5.0 get removed?), I feel that something should be displayed in settings?
What version of Home Assistant Core has the issue?
core-2025.1.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
The text was updated successfully, but these errors were encountered: