Error during setup of component ban_allowlist
Closed this issue · 3 comments
Home-Viki commented
Hello,
Thank you for your project, but impossible to add it on my HA ... :/
Can you please help ?
PS : Possible to add IP range feature ?
Error during setup of component ban_allowlist
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 404, in _async_setup_component
result = await task
^^^^^^^^^^
File "/config/custom_components/ban_allowlist/__init__.py", line 33, in async_setup
ban_manager: IpBanManager = hass.http.app[KEY_BAN_MANAGER]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 194, in __getitem__
return self._state[key]
~~~~~~~~~~~^^^^^
KeyError: <AppKey(homeassistant.components.http.ban.ha_banned_ips_manager, type=ForwardRef('IpBanManager'))>
palfrey commented
Which version? What exactly did you do to install it?
IP range feature can be added. Patches welcomed, as I've got no need for it myself, but will accept PRs that add it.
Home-Viki commented
Installation via HACS
Core
2024.5.2
Supervisor
2024.04.4
Operating System
12.2
Frontend
20240501.1