mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Fix for verify_ssl in the pi_hole sensor. (#17910)
This commit is contained in:
parent
96c5e4c507
commit
d1ef875132
@ -81,10 +81,9 @@ async def async_setup_platform(
|
|||||||
location = config.get(CONF_LOCATION)
|
location = config.get(CONF_LOCATION)
|
||||||
verify_tls = config.get(CONF_VERIFY_SSL)
|
verify_tls = config.get(CONF_VERIFY_SSL)
|
||||||
|
|
||||||
session = async_get_clientsession(hass)
|
session = async_get_clientsession(hass, verify_tls)
|
||||||
pi_hole = PiHoleData(Hole(
|
pi_hole = PiHoleData(Hole(
|
||||||
host, hass.loop, session, location=location, tls=use_tls,
|
host, hass.loop, session, location=location, tls=use_tls))
|
||||||
verify_tls=verify_tls))
|
|
||||||
|
|
||||||
await pi_hole.async_update()
|
await pi_hole.async_update()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user