Update coordinator improvements (#38366)

* Make generic

* Add type info to bunch of uses

* Recognize requests exceptions

* Recognize urllib exceptions
This commit is contained in:
Ville Skyttä authored and GitHub committed 2020-07-30 18:04:00 +03:00
1 parent 76e8870e98
commit c2a21fa496
11 files changed
+46 -25

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ def wled_exception_handler(func):
return handler
class WLEDDataUpdateCoordinator(DataUpdateCoordinator):
class WLEDDataUpdateCoordinator(DataUpdateCoordinator[WLEDDevice]):
"""Class to manage fetching WLED data from single endpoint."""
def __init__(