Skip to content

Icon urls can be a list of urls#377

Open
tbowmo wants to merge 1 commit into
custom-components:masterfrom
tbowmo:iconUrlCanBeAnArray
Open

Icon urls can be a list of urls#377
tbowmo wants to merge 1 commit into
custom-components:masterfrom
tbowmo:iconUrlCanBeAnArray

Conversation

@tbowmo

@tbowmo tbowmo commented Jan 10, 2026

Copy link
Copy Markdown

I the latest home assistant the icon url has been changed to use a list instead of a string. This breaks regex in the _full_picture_url() method, which expects a string value.

This PR mitigates that by taking the first item of the list. To keep backwards compatibility, if the url is a string value, then that is used as it is.

fixes #376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integration crashes due to changes in how HA implements icon URLs

1 participant