akasma74 / Hass-Custom-Alarm

It is a fork of "Yet another take on a home assistant custom alarm" that will exist until its author is back to our Earth
80 stars 31 forks source link

HACS installation does not work #116

Open Aephir opened 3 years ago

Aephir commented 3 years ago

The component:

Your setup:

Describe the bug Custom alarm is not updated in HACS. It was working, but stopped at some point (not sure when, haven't used it in a while). No upgrade is shown as available in HACS.

When completely removing, and re-installing with HACS, it shows that the correct version (1.12.6) is available and installed (config/custom_components/bwalarm/resources/panel.html shows var _VERSION = 'v1.12.6';).

When navigating to the Alarm panel in HA UI, it shows:

This Panel: v1.3.6_ak74

This is regardless of browser, and clearing cache.

To Reproduce

Steps to reproduce the behavior:

  1. Install via HACS
  2. Create the config/resources as described and copy the bwalarm folder to here. (yes, the correct one, this one, not this one)
  3. Restart HA (as instructed by integration, but have also tried without restarting)
  4. Clear browser cache
  5. Log in to HA
  6. Navigate to alarm panel

Expected behavior Custom alarm working, like it used to.

Your bwalarm.yaml Have tried with my old config, but [as suggested](platform: bwalarm), I also tried with just minimal config.

platform: bwalarm

Home Assistant log

2020-08-18 08:13:54 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error while setting up bwalarm platform for alarm_control_panel
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.8/asyncio/tasks.py", line 483, in wait_for
    return fut.result()
  File "/config/custom_components/bwalarm/alarm_control_panel.py", line 395, in async_setup_platform
    await hass.components.panel_custom.async_register_panel(
  File "/usr/src/homeassistant/homeassistant/components/panel_custom/__init__.py", line 144, in async_register_panel
    hass.components.frontend.async_register_built_in_panel(
  File "/usr/src/homeassistant/homeassistant/components/frontend/__init__.py", line 196, in async_register_built_in_panel
    raise ValueError(f"Overwriting panel {panel.frontend_url_path}")
ValueError: Overwriting panel alarm

I have also had logging on for HACS. They are too long to paste here (github won't let me). I have uploaded two different logs here (trying to start) and here (logging is on while installing)

Screenshots Screenshot 2020-08-18 at 09 55 12

Additional context