Skip to content

Commit d795806

Browse files
authored
Portainer refactor CONF_VERIFY_SSL (home-assistant#155520)
1 parent d45a80e commit d795806

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

homeassistant/components/portainer/config_flow.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ async def _validate_input(hass: HomeAssistant, data: dict[str, Any]) -> None:
3838
client = Portainer(
3939
api_url=data[CONF_URL],
4040
api_key=data[CONF_API_TOKEN],
41-
session=async_get_clientsession(
42-
hass=hass, verify_ssl=data.get(CONF_VERIFY_SSL, True)
43-
),
41+
session=async_get_clientsession(hass=hass, verify_ssl=data[CONF_VERIFY_SSL]),
4442
)
4543
try:
4644
await client.get_endpoints()

0 commit comments

Comments
 (0)