Properly initialize Harmony remote (#10665)

The delay_secs variable was not initialized if discovery was active and no
matching configuration block existed (i.e. override was None).
pull/10675/head
Anders Melchiorsen 2017-11-19 05:20:31 +01:00 committed by Martin Hjelmare
parent 09d826edf4
commit 709df1e844
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
False)
port = DEFAULT_PORT
delay_secs = DEFAULT_DELAY_SECS
if override:
activity = override.get(ATTR_ACTIVITY)
delay_secs = override.get(ATTR_DELAY_SECS)