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
parent
09d826edf4
commit
709df1e844
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue