Skip to content

Distinct allergen icons grouped by pollen source - #69

Merged
krissen merged 4 commits into
masterfrom
fix/risk-sensor-object-id
Aug 5, 2026
Merged

Distinct allergen icons grouped by pollen source#69
krissen merged 4 commits into
masterfrom
fix/risk-sensor-object-id

Conversation

@krissen

@krissen krissen commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Addresses #68 (do not auto-close; the issue tracks the 0.5.4 release).

Icon improvements for all allergen sensors, spun off from feedback in #63:

  • rye: mdi:grainmdi:barley. The old icon is MDI's film-grain pattern (tagged Photography), not a cereal.
  • Icon differentiation across the map: from 9 distinct icons to 13, grouped by pollen source: catkin trees (mdi:tree-outline), deciduous trees (mdi:tree), conifer (mdi:pine-tree), evergreen olive (mdi:leaf-circle), plane tree (mdi:leaf-maple, its leaf is maple-like), hazel (mdi:hops, the catkin resembles a hop cone), grasses (mdi:grass), rye (mdi:barley), weeds (mdi:flower mugwort, mdi:flower-poppy ragweed, mdi:sprout dock/sorrel), leafy herbs (mdi:leaf), fungal spores (mdi:mushroom).
  • No allergen shares an icon with the unknown-allergen fallback (mdi:flower-pollen) anymore.
  • Manifest bumped to 0.5.4. Release is planned about a week out; this PR is merged ahead of time.

MDI has no species-specific plant icons (no oak, birch, olive and so on), so meaningful groups beat arbitrary uniqueness. The groups roughly follow cross-reactivity. All 22 icon names are verified against the MDI catalog's meta.json. These icons only show in Home Assistant's own UI; pollenprognos-card uses its own icons and is unaffected.

Tests: full suite green (203 passed). The slug contract test is unaffected (it pins keys, not icon values).

krissen added 3 commits August 5, 2026 22:44
mdi:barley reads as a cereal ear. The previous mdi:grain is Material
Design Icons' film-grain icon, tagged for photography, which is why it
looked like nothing in particular at sensor size. Requested in issue #63.

Filed under a new 0.5.4 section: v0.5.3 is already published and stays
as it is.
Nine distinct icons across twenty-two allergens made a sensor list hard
to scan: seven allergens shared mdi:leaf, seven mdi:tree, and mugwort and
ragweed shared mdi:flower-pollen with the fallback icon, so an allergen
the integration does not recognize looked like either of them.

Now thirteen, grouped by pollen source: catkin trees, broadleaf trees,
evergreens, grasses, cereals, weeds, herbs and fungal spores. Hazel,
plane tree, mugwort, ragweed and sorrel get an icon of their own, no
allergen is left on the fallback icon, and fungal spores lose
mdi:cloud-alert, which read as a system warning rather than a biological
source.

Material Design Icons has no species-specific plant icons -- no acorn,
birch, olive or chestnut -- and fourteen of the allergens are trees, so
the remaining shared icons are deliberate. A shared icon is better than
one depicting the wrong plant. Every name was checked against the MDI
catalogue.
The icon work ships as 0.5.4; v0.5.3 is published and stays as it is.
@krissen krissen added the enhancement New feature or request label Aug 5, 2026
@krissen

krissen commented Aug 5, 2026

Copy link
Copy Markdown
Owner Author

@codex review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Home Assistant Polleninformation EU integration to use more distinct, source-grouped Material Design Icons for allergen sensors, improving scanability in entity/device lists, and bumps the integration version to 0.5.4.

Changes:

  • Reworked ALLERGEN_ICON_MAP to use 13 distinct icons grouped by pollen source (and changed rye to mdi:barley).
  • Bumped the integration manifest version to 0.5.4.
  • Added changelog notes describing the icon updates for v0.5.4.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
custom_components/polleninformation/sensor.py Updates allergen icon mapping to distinct, source-grouped MDI icons.
custom_components/polleninformation/manifest.json Bumps integration version to 0.5.4.
CHANGELOG.md Adds v0.5.4 changelog entry describing the icon changes.

Comment thread CHANGELOG.md Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 855bae27eb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

The section was stamped with the day it was written, not the day 0.5.4
is expected to ship.
@krissen
krissen merged commit 83ecee4 into master Aug 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants