mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
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:
parent
3230e741e9
commit
7bc0c1b912
@ -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
2
requirements_all.txt
generated
@ -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
|
||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -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
|
||||
|
@ -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}"
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user