Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump aioshelly to version 13.0.0 #139294

Merged
merged 2 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/shelly/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion requirements_test_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/components/shelly/test_binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"
Expand Down
8 changes: 4 additions & 4 deletions tests/components/shelly/test_climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from aioshelly.const import (
BLU_TRV_IDENTIFIER,
MODEL_BLU_GATEWAY_GEN3,
MODEL_BLU_GATEWAY_G3,
MODEL_VALVE,
MODEL_WALL_DISPLAY,
)
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down
8 changes: 4 additions & 4 deletions tests/components/shelly/test_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"
Expand All @@ -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"

Expand Down Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions tests/components/shelly/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"
Expand Down