thomasloven / hass-fontawesome

🔹 Use icons from fontawesome in home-assistant
Other
287 stars 54 forks source link

Integration not loading. #35

Closed gerdschadler closed 3 years ago

gerdschadler commented 3 years ago

Since I updated HA to 2021.5 I have trouble with the integration.

Now I get the following error:

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/fontawesome/__init__.py:48
Integration: Fontawesome icons (documentation)
First occurred: 10:25:12 PM (2 occurrences)
Last logged: 10:26:40 PM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/fontawesome/__init__.py", line 38, in _update_listener
    register_modules(hass, config_entry.options)
  File "/config/custom_components/fontawesome/__init__.py", line 48, in register_modules
    url_set.discard(ICONS_URL+v)
AttributeError: 'UrlManager' object has no attribute 'discard'

Installation Type | Home Assistant Container Development | false Supervisor | false Docker | true Virtual Environment | false Python Version | 3.8.9 Operating System Family | Linux Operating System Version | 4.19.0-16-amd64 CPU Architecture | x86_64

jjprz commented 3 years ago

Temporarily modify '.discard' to '.remove' and it will work

gerdschadler commented 3 years ago

Thanks.... working.