commit 1c2abf687ae111655033df0de41a87d6e4efe2b4 parent 7a1e4ecf53de2103856e78e2eac2d3371f83d12a Author: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Mar 2026 20:01:20 +0000 Fix brand images not showing: require HA 2026.3.0 and add icons.json - Update hacs.json minimum HA version to 2026.3.0 (required for local brand image support via brand/ directory) - Add icons.json for entity icon translations using mdi:outdoor-lamp - Set _attr_translation_key on light entity to enable icon translations Co-authored-by: bbruenings <11193451+bbruenings@users.noreply.github.com> Agent-Logs-Url: https://github.com/bbruenings/ha-inlite/sessions/1cbf0cbd-9197-468f-a52b-68d18d50fe0e
diff --git a/custom_components/inlite/icons.json b/custom_components/inlite/icons.json new file mode 100644 index 0000000000000000000000000000000000000000..82d6eb92c16d529857d6352241d260fb615b442f --- /dev/null +++ b/custom_components/inlite/icons.json @@ -0,0 +1,9 @@ +{ + "entity": { + "light": { + "zone": { + "default": "mdi:outdoor-lamp" + } + } + } +} diff --git a/custom_components/inlite/light.py b/custom_components/inlite/light.py index 6a47f609262b058b3b35084aaeaaab8a46335295..7011f605a18c85e6f89a79b964b91231cbe77e75 100644 --- a/custom_components/inlite/light.py +++ b/custom_components/inlite/light.py @@ -58,6 +58,7 @@ class InliteLightEntity(CoordinatorEntity[InliteCoordinator], LightEntity): """Represents a single in-lite light zone.""" _attr_has_entity_name = True + _attr_translation_key = "zone" _attr_color_mode = ColorMode.ONOFF _attr_supported_color_modes = {ColorMode.ONOFF} diff --git a/hacs.json b/hacs.json index 142ff01bbab9e1f93e3436f342ebb43c00633024..fbad1b17e0c757c6d0ce7d615225953a214663e0 100644 --- a/hacs.json +++ b/hacs.json @@ -1,5 +1,5 @@ { "name": "in-lite Outdoor Lighting", - "homeassistant": "2024.12.0", + "homeassistant": "2026.3.0", "render_readme": true }