From 39f34a050b19fca80eef06c524fbe5a0f0e3b1ac Mon Sep 17 00:00:00 2001 From: djdevil Date: Sun, 11 Jun 2023 01:15:31 +0200 Subject: [PATCH 1/2] Update __init__.py Unverified HTTPS log Logger: py.warnings --- custom_components/proxmoxve/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/custom_components/proxmoxve/__init__.py b/custom_components/proxmoxve/__init__.py index 2d89f2a..51c22d1 100644 --- a/custom_components/proxmoxve/__init__.py +++ b/custom_components/proxmoxve/__init__.py @@ -12,6 +12,11 @@ ) import voluptuous as vol +import warnings +from urllib3.exceptions import InsecureRequestWarning + +warnings.filterwarnings("ignore", category=InsecureRequestWarning) + from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from homeassistant.const import ( CONF_HOST, From 9d6a2811fd30cf8b939bfdf059e49ef588f0cced Mon Sep 17 00:00:00 2001 From: dougiteixeira <31328123+dougiteixeira@users.noreply.github.com> Date: Sat, 10 Jun 2023 20:57:38 -0300 Subject: [PATCH 2/2] Update __init__.py --- custom_components/proxmoxve/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/custom_components/proxmoxve/__init__.py b/custom_components/proxmoxve/__init__.py index 51c22d1..da37c4e 100644 --- a/custom_components/proxmoxve/__init__.py +++ b/custom_components/proxmoxve/__init__.py @@ -13,9 +13,6 @@ import voluptuous as vol import warnings -from urllib3.exceptions import InsecureRequestWarning - -warnings.filterwarnings("ignore", category=InsecureRequestWarning) from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from homeassistant.const import ( @@ -38,6 +35,9 @@ ) from homeassistant.helpers.typing import ConfigType + +from urllib3.exceptions import InsecureRequestWarning + from .const import ( CONF_CONTAINERS, CONF_LXC, @@ -108,6 +108,8 @@ extra=vol.ALLOW_EXTRA, ) +warnings.filterwarnings("ignore", category=InsecureRequestWarning) + async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: """Set up the platform."""