Add default value for signal_repetitions in cover (#61393)

pull/61406/head
bigbadblunt 2021-12-09 21:12:40 +00:00 committed by GitHub
parent d64ae20f94
commit 497f036af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)