gazoscalvertos / Hass-Custom-Alarm

Yet another take on a home assistant custom alarm
221 stars 94 forks source link

0.86.2/3 Keypad gone missing #63

Open YoinkZed opened 5 years ago

YoinkZed commented 5 years ago

Hi,

It seems that the Custom Alarm Panel is having some issues showing the Keypad after the latest updates.

When adding the panel to the ui it doesn't show the keypad. I'm still able to arm and disarm my alarm if I use the Alarm menu.

Can you perhaps look into this?

kernehed commented 5 years ago

This may be the fix for you:

https://github.com/gazoscalvertos/Hass-Custom-Alarm/pull/64/commits/fed5a79cd43124d2661e1a3694d7f5f027c1f599

YoinkZed commented 5 years ago

This may be the fix for you:

fed5a79

I actually tried doing this:

Line 688

@property
def code_format(self):
    """One or more characters."""
    if self._code is None:
        return None
    if isinstance(self._code, str) and re.search('^\\d+$', self._code):
        return alarm.FORMAT_NUMBER
    return alarm.FORMAT_TEXT

instead of:

@property
def code_format(self):
    """One or more characters."""
    return None if self._code is None else '.+'

Will the. py file be updated here on Github?

garydn commented 5 years ago

Alarm panel not working/displaying with 0.86.3 tried the updated .py file, going to roll back to .2

akasma74 commented 5 years ago

I just did this, and it works