Skip to content

Commit

Permalink
Fixes panel registration on versions < 0.94
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jun 1, 2019
1 parent ac52556 commit 8f8c37b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions custom_components/hacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ async def async_setup(hass, config): # pylint: disable=unused-argument

# Add to sidepanel
# TODO: Remove this check when minimum HA version is > 0.94
if parse_version(HAVERSION) < parse_version('0.94.0'):
hass.components.frontend.async_register_built_in_panel(
if parse_version(HAVERSION) < parse_version('0.93.9'):
await hass.components.frontend.async_register_built_in_panel(
"iframe",
IFRAME["title"],
IFRAME["icon"],
Expand All @@ -100,7 +100,7 @@ async def async_setup(hass, config): # pylint: disable=unused-argument
require_admin=IFRAME["require_admin"],
)
else:
await hass.components.frontend.async_register_built_in_panel(
hass.components.frontend.async_register_built_in_panel(
"iframe",
IFRAME["title"],
IFRAME["icon"],
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hacs/const.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Constants for HACS"""
VERSION = "0.4.0"
VERSION = "0.4.1"
NAME_LONG = "HACS (Home Assistant Community Store)"
NAME_SHORT = "HACS"
STORAGE_VERSION = "1"
Expand Down

0 comments on commit 8f8c37b

Please sign in to comment.