Skip to content

Commit

Permalink
Merge pull request #94 from djdevil/patch-1
Browse files Browse the repository at this point in the history
Ignore warning InsecureRequestWarning
  • Loading branch information
dougiteixeira authored Jun 11, 2023
2 parents 8e16be0 + 9d6a281 commit f7683b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions custom_components/proxmoxve/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
)
import voluptuous as vol

import warnings

from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.const import (
CONF_HOST,
Expand All @@ -33,6 +35,9 @@
)
from homeassistant.helpers.typing import ConfigType


from urllib3.exceptions import InsecureRequestWarning

from .const import (
CONF_CONTAINERS,
CONF_LXC,
Expand Down Expand Up @@ -103,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."""
Expand Down

0 comments on commit f7683b4

Please sign in to comment.