Add default value for signal_repetitions in cover (#61393)

This commit is contained in:
bigbadblunt
2021-12-09 22:12:40 +01:00
committed by GitHub
parent d64ae20f94
commit 497f036af6
+1 -1
View File
@@ -65,7 +65,7 @@ async def async_setup_entry(
entity = RfxtrxCover(
event.device,
device_id,
signal_repetitions=entity_info[CONF_SIGNAL_REPETITIONS],
signal_repetitions=entity_info.get(CONF_SIGNAL_REPETITIONS, 1),
venetian_blind_mode=entity_info.get(CONF_VENETIAN_BLIND_MODE),
)
entities.append(entity)