Bump aioshelly to version 13.0.0 (#139294)

* Bump aioshelly to version 13.0.0

* MODEL_BLU_GATEWAY_GEN3 -> MODEL_BLU_GATEWAY_G3
This commit is contained in:
Maciej Bieniek 2025-02-25 22:52:44 +01:00 committed by GitHub
parent 3230e741e9
commit 7bc0c1b912
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 15 additions and 15 deletions

View File

@ -8,7 +8,7 @@
"integration_type": "device",
"iot_class": "local_push",
"loggers": ["aioshelly"],
"requirements": ["aioshelly==12.4.2"],
"requirements": ["aioshelly==13.0.0"],
"zeroconf": [
{
"type": "_http._tcp.local.",

2
requirements_all.txt generated
View File

@ -371,7 +371,7 @@ aioruuvigateway==0.1.0
aiosenz==1.0.0
# homeassistant.components.shelly
aioshelly==12.4.2
aioshelly==13.0.0
# homeassistant.components.skybell
aioskybell==22.7.0

View File

@ -353,7 +353,7 @@ aioruuvigateway==0.1.0
aiosenz==1.0.0
# homeassistant.components.shelly
aioshelly==12.4.2
aioshelly==13.0.0
# homeassistant.components.skybell
aioskybell==22.7.0

View File

@ -3,7 +3,7 @@
from copy import deepcopy
from unittest.mock import Mock
from aioshelly.const import MODEL_BLU_GATEWAY_GEN3, MODEL_MOTION
from aioshelly.const import MODEL_BLU_GATEWAY_G3, MODEL_MOTION
from freezegun.api import FrozenDateTimeFactory
import pytest
from syrupy import SnapshotAssertion
@ -486,7 +486,7 @@ async def test_blu_trv_binary_sensor_entity(
snapshot: SnapshotAssertion,
) -> None:
"""Test BLU TRV binary sensor entity."""
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_GEN3)
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_G3)
for entity in ("calibration",):
entity_id = f"{BINARY_SENSOR_DOMAIN}.trv_name_{entity}"

View File

@ -5,7 +5,7 @@ from unittest.mock import AsyncMock, Mock, PropertyMock
from aioshelly.const import (
BLU_TRV_IDENTIFIER,
MODEL_BLU_GATEWAY_GEN3,
MODEL_BLU_GATEWAY_G3,
MODEL_VALVE,
MODEL_WALL_DISPLAY,
)
@ -782,7 +782,7 @@ async def test_blu_trv_climate_set_temperature(
entity_id = "climate.trv_name"
monkeypatch.delitem(mock_blu_trv.status, "thermostat:0")
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_GEN3)
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_G3)
assert get_entity_attribute(hass, entity_id, ATTR_TEMPERATURE) == 17.1
@ -820,7 +820,7 @@ async def test_blu_trv_climate_disabled(
entity_id = "climate.trv_name"
monkeypatch.delitem(mock_blu_trv.status, "thermostat:0")
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_GEN3)
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_G3)
assert get_entity_attribute(hass, entity_id, ATTR_TEMPERATURE) == 17.1
@ -842,7 +842,7 @@ async def test_blu_trv_climate_hvac_action(
entity_id = "climate.trv_name"
monkeypatch.delitem(mock_blu_trv.status, "thermostat:0")
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_GEN3)
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_G3)
assert get_entity_attribute(hass, entity_id, ATTR_HVAC_ACTION) == HVACAction.IDLE

View File

@ -3,7 +3,7 @@
from copy import deepcopy
from unittest.mock import AsyncMock, Mock
from aioshelly.const import MODEL_BLU_GATEWAY_GEN3
from aioshelly.const import MODEL_BLU_GATEWAY_G3
from aioshelly.exceptions import DeviceConnectionError, InvalidAuthError
import pytest
from syrupy import SnapshotAssertion
@ -405,7 +405,7 @@ async def test_blu_trv_number_entity(
# disable automatic temperature control in the device
monkeypatch.setitem(mock_blu_trv.config["blutrv:200"], "enable", False)
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_GEN3)
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_G3)
for entity in ("external_temperature", "valve_position"):
entity_id = f"{NUMBER_DOMAIN}.trv_name_{entity}"
@ -421,7 +421,7 @@ async def test_blu_trv_ext_temp_set_value(
hass: HomeAssistant, mock_blu_trv: Mock
) -> None:
"""Test the set value action for BLU TRV External Temperature number entity."""
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_GEN3)
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_G3)
entity_id = f"{NUMBER_DOMAIN}.trv_name_external_temperature"
@ -461,7 +461,7 @@ async def test_blu_trv_valve_pos_set_value(
# disable automatic temperature control to enable valve position entity
monkeypatch.setitem(mock_blu_trv.config["blutrv:200"], "enable", False)
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_GEN3)
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_G3)
entity_id = f"{NUMBER_DOMAIN}.trv_name_valve_position"

View File

@ -3,7 +3,7 @@
from copy import deepcopy
from unittest.mock import Mock
from aioshelly.const import MODEL_BLU_GATEWAY_GEN3
from aioshelly.const import MODEL_BLU_GATEWAY_G3
from freezegun.api import FrozenDateTimeFactory
import pytest
from syrupy import SnapshotAssertion
@ -1416,7 +1416,7 @@ async def test_blu_trv_sensor_entity(
snapshot: SnapshotAssertion,
) -> None:
"""Test BLU TRV sensor entity."""
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_GEN3)
await init_integration(hass, 3, model=MODEL_BLU_GATEWAY_G3)
for entity in ("battery", "signal_strength", "valve_position"):
entity_id = f"{SENSOR_DOMAIN}.trv_name_{entity}"