mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
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:
parent
2ba5f1f45e
commit
4cb0e4b3c2
@ -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…
x
Reference in New Issue
Block a user