mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Don't show input panel if default code provided in envisalink (#125256)
This commit is contained in:
parent
b61678d39c
commit
1f59bd9f92
@ -119,7 +119,7 @@ class EnvisalinkAlarm(EnvisalinkDevice, AlarmControlPanelEntity):
|
|||||||
self._partition_number = partition_number
|
self._partition_number = partition_number
|
||||||
self._panic_type = panic_type
|
self._panic_type = panic_type
|
||||||
self._alarm_control_panel_option_default_code = code
|
self._alarm_control_panel_option_default_code = code
|
||||||
self._attr_code_format = CodeFormat.NUMBER
|
self._attr_code_format = CodeFormat.NUMBER if not code else None
|
||||||
|
|
||||||
_LOGGER.debug("Setting up alarm: %s", alarm_name)
|
_LOGGER.debug("Setting up alarm: %s", alarm_name)
|
||||||
super().__init__(alarm_name, info, controller)
|
super().__init__(alarm_name, info, controller)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user