From 14eaae27f4e146860e5d7a0797e4fb4e65b1783b Mon Sep 17 00:00:00 2001 From: James Smith Date: Sat, 28 Sep 2024 21:00:45 -0700 Subject: [PATCH] Preparing release 0.12.3 --- .pre-commit-config.yaml | 6 +++--- custom_components/vantage/__init__.py | 5 ++++- custom_components/vantage/manifest.json | 4 ++-- requirements.txt | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c9318a1..3044685 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,9 +15,9 @@ repos: hooks: - id: mypy additional_dependencies: - - aiovantage==0.14.0 + - aiovantage==0.15.0 - voluptuous-stubs==0.1.1 - - homeassistant-stubs==2024.6.4 + - homeassistant-stubs==2024.9.2 args: [] - repo: https://github.com/thlorenz/doctoc @@ -27,4 +27,4 @@ repos: args: ["--github", "--notitle", "--maxlevel=2", "--update-only"] default_language_version: - python: python3.12 \ No newline at end of file + python: python3.12 diff --git a/custom_components/vantage/__init__.py b/custom_components/vantage/__init__.py index d0cd946..573dae8 100644 --- a/custom_components/vantage/__init__.py +++ b/custom_components/vantage/__init__.py @@ -24,6 +24,7 @@ Platform, ) from homeassistant.core import HomeAssistant +from homeassistant.util.ssl import get_default_no_verify_context from .const import DOMAIN from .device import async_setup_devices @@ -53,7 +54,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: entry.data[CONF_HOST], entry.data.get(CONF_USERNAME), entry.data.get(CONF_PASSWORD), - use_ssl=entry.data.get(CONF_SSL, True), + ssl=( + get_default_no_verify_context() if entry.data.get(CONF_SSL, True) else False + ), ) # Store the client in the hass data store diff --git a/custom_components/vantage/manifest.json b/custom_components/vantage/manifest.json index e99d3b4..75c78fe 100644 --- a/custom_components/vantage/manifest.json +++ b/custom_components/vantage/manifest.json @@ -17,9 +17,9 @@ "custom_components.vantage" ], "requirements": [ - "aiovantage==0.14.0" + "aiovantage==0.15.0" ], - "version": "0.12.2", + "version": "0.12.3", "zeroconf": [ { "type": "_secure_aci._tcp.local.", diff --git a/requirements.txt b/requirements.txt index c923915..4ba8037 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,9 @@ # Home assistant -homeassistant==2024.6.4 +homeassistant==2024.9.2 colorlog==6.8.2 # Use a specific version of aiovantage -aiovantage==0.14.0 +aiovantage==0.15.0 # Use a local version of aiovantage # -e ../aiovantage