Make upnp update interval configurable (#35298)

* Simplification of upnp component

* Make update interval configurable

* Description

* Require minimal value of 30

* Black

* Linting

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
Steven LoomanandPaulus Schoutsen authored and GitHub committed 2020-05-09 21:52:08 -05:00
1 parent 8994931ec4
commit a97460d1ab
5 files changed
+130 -17

No files matched your search

+2
View File
@@ -23,3 +23,5 @@ DISCOVERY_UDN = "udn"
DISCOVERY_USN = "usn"
CONFIG_ENTRY_UDN = "udn"
CONFIG_ENTRY_ST = "st"
CONFIG_ENTRY_SCAN_INTERVAL = "scan_interval"
DEFAULT_SCAN_INTERVAL = timedelta(seconds=30).seconds