Don't show input panel if default code provided in envisalink (#125256)

pull/125420/head
G Johansson 2024-09-04 21:49:28 +02:00 committed by Paulus Schoutsen
parent 6c15f251c6
commit 84c204a7b3
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class EnvisalinkAlarm(EnvisalinkDevice, AlarmControlPanelEntity):
self._partition_number = partition_number
self._panic_type = panic_type
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)
super().__init__(alarm_name, info, controller)