Update coordinator improvements (#38366)
* Make generic * Add type info to bunch of uses * Recognize requests exceptions * Recognize urllib exceptions
This commit is contained in:
1 parent
76e8870e98
commit
c2a21fa496
11 files changed
+46
-25
No files matched your search
@@ -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__(
|
||||
|
||||
Reference in new issue
Block a user