Skip to content

Commit

Permalink
🎨 fix error from HA 2024.9+ (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
shing6326 authored May 16, 2024
1 parent bfc2a1b commit a1628ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/auth_header/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from homeassistant.components.http.ban import log_invalid_auth
from homeassistant.components.http.data_validator import RequestDataValidator
from homeassistant.core import HomeAssistant
from homeassistant.components.frontend import add_extra_js_url

from . import headers

Expand Down Expand Up @@ -70,7 +71,7 @@ async def async_setup(hass: HomeAssistant, config):
"/auth_header/store-token.js",
os.path.join(os.path.dirname(__file__), 'store-token.js'),
)
hass.components.frontend.add_extra_js_url(hass, '/auth_header/store-token.js')
add_extra_js_url(hass, '/auth_header/store-token.js')

# Inject Auth-Header provider.
providers = OrderedDict()
Expand Down

0 comments on commit a1628ac

Please sign in to comment.