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).
This commit is contained in:
Anders Melchiorsen 2017-11-19 05:20:31 +01:00 committed by Paulus Schoutsen
parent 2ba5f1f45e
commit 4cb0e4b3c2

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)