mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Fix SSL connections to Pi-hole (#27073)
This commit is contained in:
parent
d28980b097
commit
8c01ed8a1f
@ -72,16 +72,10 @@ async def async_setup(hass, config):
|
|||||||
|
|
||||||
LOGGER.debug("Setting up %s integration with host %s", DOMAIN, host)
|
LOGGER.debug("Setting up %s integration with host %s", DOMAIN, host)
|
||||||
|
|
||||||
session = async_get_clientsession(hass, True)
|
session = async_get_clientsession(hass, verify_tls)
|
||||||
pi_hole = PiHoleData(
|
pi_hole = PiHoleData(
|
||||||
Hole(
|
Hole(
|
||||||
host,
|
host, hass.loop, session, location=location, tls=use_tls, api_token=api_key
|
||||||
hass.loop,
|
|
||||||
session,
|
|
||||||
location=location,
|
|
||||||
tls=use_tls,
|
|
||||||
verify_tls=verify_tls,
|
|
||||||
api_token=api_key,
|
|
||||||
),
|
),
|
||||||
name,
|
name,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user