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
@@ -86,7 +86,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
return unload_ok
class IPPDataUpdateCoordinator(DataUpdateCoordinator):
class IPPDataUpdateCoordinator(DataUpdateCoordinator[IPPPrinter]):
"""Class to manage fetching IPP data from single endpoint."""
def __init__(