1 """DataUpdateCoordinator for the SABnzbd integration."""
3 from datetime
import timedelta
7 from pysabnzbd
import SabnzbdApi, SabnzbdApiException
13 _LOGGER = logging.getLogger(__name__)
17 """The SABnzbd update coordinator."""
19 config_entry: ConfigEntry
24 config_entry: ConfigEntry,
27 """Initialize the SABnzbd update coordinator."""
33 config_entry=config_entry,
39 """Get the latest data from the SABnzbd API."""
41 await self.
sab_apisab_api.refresh_data()
42 except SabnzbdApiException
as err:
45 return self.
sab_apisab_api.queue
dict[str, Any] _async_update_data(self)
None __init__(self, HomeAssistant hass, ConfigEntry config_entry, SabnzbdApi sab_api)