Bump python technove to 2.1.3 (#179350)

Co-authored-by: Moustachauve <2206577+Moustachauve@users.noreply.github.com>
This commit is contained in:
Christophe Gagnier
2026-08-17 19:24:38 +02:00
committed by GitHub
co-authored by Moustachauve
parent c083d62043
commit 8ebff76eff
9 changed files with 17 additions and 13 deletions
@@ -6,6 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/technove",
"integration_type": "device",
"iot_class": "local_polling",
"requirements": ["python-technove==2.1.2"],
"requirements": ["python-technove==2.1.3"],
"zeroconf": ["_technove-stations._tcp.local."]
}
+4 -4
View File
@@ -4,7 +4,7 @@ from collections.abc import Callable, Coroutine
from dataclasses import dataclass
from typing import Any, override
from technove import MIN_CURRENT, TechnoVE
from technove import MIN_CURRENT, Station as TechnoVEStation
from homeassistant.components.number import (
NumberDeviceClass,
@@ -29,8 +29,8 @@ PARALLEL_UPDATES = 1
class TechnoVENumberDescription(NumberEntityDescription):
"""Describes TechnoVE number entity."""
native_max_value_fn: Callable[[TechnoVE], float]
native_value_fn: Callable[[TechnoVE], float]
native_max_value_fn: Callable[[TechnoVEStation], float]
native_value_fn: Callable[[TechnoVEStation], float]
set_value_fn: Callable[
[TechnoVEDataUpdateCoordinator, float], Coroutine[Any, Any, None]
]
@@ -43,7 +43,7 @@ async def _set_max_current(
raise ServiceValidationError(
translation_domain=DOMAIN, translation_key="max_current_in_sharing_mode"
)
await coordinator.technove.set_max_current(value)
await coordinator.technove.set_max_current(int(value))
NUMBERS = [
+1 -1
View File
@@ -28,7 +28,7 @@ from .entity import TechnoVEEntity
PARALLEL_UPDATES = 0
STATUS_TYPE = [s.value for s in Status if s != Status.UNKNOWN]
STATUS_TYPE = [s.value for s in Status if s is not Status.UNKNOWN]
@dataclass(frozen=True, kw_only=True)
+2 -2
View File
@@ -1,7 +1,7 @@
"""Support for TechnoVE switches."""
from collections.abc import Callable, Coroutine
from dataclasses import dataclass
from dataclasses import dataclass, replace
from typing import Any, override
from technove import Station as TechnoVEStation
@@ -29,7 +29,7 @@ async def _set_charging_enabled(
translation_key="set_charging_enabled_on_auto_charge",
)
await coordinator.technove.set_charging_enabled(enabled=enabled)
coordinator.data.info.is_session_active = enabled
coordinator.data.info = replace(coordinator.data.info, is_session_active=enabled)
coordinator.async_set_updated_data(coordinator.data)
+1 -1
View File
@@ -2786,7 +2786,7 @@ python-swisscom-internet-box==0.2.0
python-tado==0.18.16
# homeassistant.components.technove
python-technove==2.1.2
python-technove==2.1.3
# homeassistant.components.telegram_bot
python-telegram-bot[socks]==22.7
@@ -1,5 +1,6 @@
"""Tests for the TechnoVE config flow."""
from dataclasses import replace
from ipaddress import ip_address
from unittest.mock import AsyncMock, MagicMock
@@ -317,7 +318,7 @@ async def test_full_reconfigure_flow_unique_id_mismatch(
# Change mac address to simulate a different device
device = mock_technove.update.return_value
device.info.mac_address = "AA:AA:AA:AA:AA:CC"
device.info = replace(device.info, mac_address="AA:AA:AA:AA:AA:CC")
result = await mock_config_entry.start_reconfigure_flow(hass)
+2 -1
View File
@@ -1,5 +1,6 @@
"""Tests for the TechnoVE number platform."""
from dataclasses import replace
from unittest.mock import MagicMock
import pytest
@@ -111,7 +112,7 @@ async def test_set_max_current_sharing_mode(
# Enable power sharing mode
device = mock_technove.update.return_value
device.info.in_sharing_mode = True
device.info = replace(device.info, in_sharing_mode=True)
with pytest.raises(
ServiceValidationError,
+2 -1
View File
@@ -1,5 +1,6 @@
"""Tests for the TechnoVE sensor platform."""
from dataclasses import replace
from datetime import timedelta
from unittest.mock import MagicMock
@@ -71,7 +72,7 @@ async def test_no_wifi_support(
"""Test missing Wi-Fi information from TechnoVE device."""
# Remove Wi-Fi info
device = mock_technove.update.return_value
device.info.network_ssid = None
device.info = replace(device.info, network_ssid=None)
# Setup
mock_config_entry.add_to_hass(hass)
+2 -1
View File
@@ -1,5 +1,6 @@
"""Tests for the TechnoVE switch platform."""
from dataclasses import replace
from unittest.mock import MagicMock
import pytest
@@ -184,7 +185,7 @@ async def test_disable_charging_auto_charge(
# Enable auto-charge mode
device = mock_technove.update.return_value
device.info.auto_charge = True
device.info = replace(device.info, auto_charge=True)
with pytest.raises(
ServiceValidationError,