Add support for Uonet+ Vulcan integration on Python 3.12 (#107959)
* Bump vulcan-api to 2.3.2 * Enable vulcan integration on Python 3.12 * Stop skipping tests for vulcan integration on Python 3.12pull/107984/head
parent
d5c3c19d12
commit
ca421d4f86
|
@ -1,32 +1,21 @@
|
|||
"""The Vulcan component."""
|
||||
import sys
|
||||
|
||||
from aiohttp import ClientConnectorError
|
||||
from vulcan import Account, Keystore, UnauthorizedCertificateException, Vulcan
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import (
|
||||
ConfigEntryAuthFailed,
|
||||
ConfigEntryNotReady,
|
||||
HomeAssistantError,
|
||||
)
|
||||
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import DOMAIN
|
||||
|
||||
if sys.version_info < (3, 12):
|
||||
from vulcan import Account, Keystore, UnauthorizedCertificateException, Vulcan
|
||||
|
||||
PLATFORMS = [Platform.CALENDAR]
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Set up Uonet+ Vulcan integration."""
|
||||
if sys.version_info >= (3, 12):
|
||||
raise HomeAssistantError(
|
||||
"Uonet+ Vulcan is not supported on Python 3.12. Please use Python 3.11."
|
||||
)
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
try:
|
||||
keystore = Keystore.load(entry.data["keystore"])
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
"documentation": "https://www.home-assistant.io/integrations/vulcan",
|
||||
"iot_class": "cloud_polling",
|
||||
"quality_scale": "silver",
|
||||
"requirements": ["vulcan-api==2.3.0"]
|
||||
"requirements": ["vulcan-api==2.3.2"]
|
||||
}
|
||||
|
|
|
@ -2769,7 +2769,7 @@ vsure==2.6.6
|
|||
vtjp==0.2.1
|
||||
|
||||
# homeassistant.components.vulcan
|
||||
vulcan-api==2.3.0
|
||||
vulcan-api==2.3.2
|
||||
|
||||
# homeassistant.components.vultr
|
||||
vultr==0.1.2
|
||||
|
|
|
@ -2095,7 +2095,7 @@ volvooncall==0.10.3
|
|||
vsure==2.6.6
|
||||
|
||||
# homeassistant.components.vulcan
|
||||
vulcan-api==2.3.0
|
||||
vulcan-api==2.3.2
|
||||
|
||||
# homeassistant.components.vultr
|
||||
vultr==0.1.2
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
"""Skip test collection for Python 3.12."""
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
collect_ignore_glob = ["test_*.py"]
|
Loading…
Reference in New Issue