1 """Support for the Sabnzbd service."""
3 from pysabnzbd
import SabnzbdApi, SabnzbdApiException
11 """Get Sabnzbd client."""
12 api_key = data[CONF_API_KEY]
21 await sab_api.check_available()
22 except SabnzbdApiException
as exception:
23 _LOGGER.error(
"Connection to SABnzbd API failed: %s", exception.message)
def get_client(HomeAssistant hass, data)
aiohttp.ClientSession async_get_clientsession(HomeAssistant hass, bool verify_ssl=True, socket.AddressFamily family=socket.AF_UNSPEC, ssl_util.SSLCipherList ssl_cipher=ssl_util.SSLCipherList.PYTHON_DEFAULT)