Update huum to 0.7.12 (#130527)
This commit is contained in:
parent
093b16c723
commit
5f68d405b2
7 changed files with 14 additions and 32 deletions
|
@ -3,30 +3,23 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
|
||||||
|
from huum.exceptions import Forbidden, NotAuthenticated
|
||||||
|
from huum.huum import Huum
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.exceptions import ConfigEntryNotReady, HomeAssistantError
|
from homeassistant.exceptions import ConfigEntryNotReady
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
|
||||||
from .const import DOMAIN, PLATFORMS
|
from .const import DOMAIN, PLATFORMS
|
||||||
|
|
||||||
if sys.version_info < (3, 13):
|
|
||||||
from huum.exceptions import Forbidden, NotAuthenticated
|
|
||||||
from huum.huum import Huum
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
"""Set up Huum from a config entry."""
|
"""Set up Huum from a config entry."""
|
||||||
if sys.version_info >= (3, 13):
|
|
||||||
raise HomeAssistantError(
|
|
||||||
"Huum is not supported on Python 3.13. Please use Python 3.12."
|
|
||||||
)
|
|
||||||
|
|
||||||
username = entry.data[CONF_USERNAME]
|
username = entry.data[CONF_USERNAME]
|
||||||
password = entry.data[CONF_PASSWORD]
|
password = entry.data[CONF_PASSWORD]
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,13 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from huum.const import SaunaStatus
|
||||||
|
from huum.exceptions import SafetyException
|
||||||
|
from huum.huum import Huum
|
||||||
|
from huum.schemas import HuumStatusResponse
|
||||||
|
|
||||||
from homeassistant.components.climate import (
|
from homeassistant.components.climate import (
|
||||||
ClimateEntity,
|
ClimateEntity,
|
||||||
ClimateEntityFeature,
|
ClimateEntityFeature,
|
||||||
|
@ -20,12 +24,6 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
if sys.version_info < (3, 13):
|
|
||||||
from huum.const import SaunaStatus
|
|
||||||
from huum.exceptions import SafetyException
|
|
||||||
from huum.huum import Huum
|
|
||||||
from huum.schemas import HuumStatusResponse
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,10 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from huum.exceptions import Forbidden, NotAuthenticated
|
||||||
|
from huum.huum import Huum
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
|
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
|
||||||
|
@ -14,10 +15,6 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
if sys.version_info < (3, 13):
|
|
||||||
from huum.exceptions import Forbidden, NotAuthenticated
|
|
||||||
from huum.huum import Huum
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
STEP_USER_DATA_SCHEMA = vol.Schema(
|
STEP_USER_DATA_SCHEMA = vol.Schema(
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/huum",
|
"documentation": "https://www.home-assistant.io/integrations/huum",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"requirements": ["huum==0.7.11;python_version<'3.13'"]
|
"requirements": ["huum==0.7.12"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1148,7 +1148,7 @@ httplib2==0.20.4
|
||||||
huawei-lte-api==1.10.0
|
huawei-lte-api==1.10.0
|
||||||
|
|
||||||
# homeassistant.components.huum
|
# homeassistant.components.huum
|
||||||
huum==0.7.11;python_version<'3.13'
|
huum==0.7.12
|
||||||
|
|
||||||
# homeassistant.components.hyperion
|
# homeassistant.components.hyperion
|
||||||
hyperion-py==0.7.5
|
hyperion-py==0.7.5
|
||||||
|
|
|
@ -971,7 +971,7 @@ httplib2==0.20.4
|
||||||
huawei-lte-api==1.10.0
|
huawei-lte-api==1.10.0
|
||||||
|
|
||||||
# homeassistant.components.huum
|
# homeassistant.components.huum
|
||||||
huum==0.7.11;python_version<'3.13'
|
huum==0.7.12
|
||||||
|
|
||||||
# homeassistant.components.hyperion
|
# homeassistant.components.hyperion
|
||||||
hyperion-py==0.7.5
|
hyperion-py==0.7.5
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
"""Skip test collection for Python 3.13."""
|
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
if sys.version_info >= (3, 13):
|
|
||||||
collect_ignore_glob = ["test_*.py"]
|
|
Loading…
Add table
Reference in a new issue