diff --git a/homeassistant/components/vallox/__init__.py b/homeassistant/components/vallox/__init__.py index 1feda8e694a..ce40e07e294 100644 --- a/homeassistant/components/vallox/__init__.py +++ b/homeassistant/components/vallox/__init__.py @@ -135,7 +135,7 @@ class ValloxState: @property def sw_version(self) -> str: """Return the SW version.""" - return cast(str, _api_get_sw_version(self.metric_cache)) + return _api_get_sw_version(self.metric_cache) @property def uuid(self) -> UUID | None: diff --git a/homeassistant/components/vallox/manifest.json b/homeassistant/components/vallox/manifest.json index 479c84d238c..c06bc036e4e 100644 --- a/homeassistant/components/vallox/manifest.json +++ b/homeassistant/components/vallox/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://www.home-assistant.io/integrations/vallox", "iot_class": "local_polling", "loggers": ["vallox_websocket_api"], - "requirements": ["vallox-websocket-api==3.3.0"] + "requirements": ["vallox-websocket-api==4.0.2"] } diff --git a/requirements_all.txt b/requirements_all.txt index 56f7aaf3511..15843840744 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2658,7 +2658,7 @@ url-normalize==1.4.3 uvcclient==0.11.0 # homeassistant.components.vallox -vallox-websocket-api==3.3.0 +vallox-websocket-api==4.0.2 # homeassistant.components.rdw vehicle==2.0.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index c7e0dc73ff4..d9ec8538fd4 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1976,7 +1976,7 @@ url-normalize==1.4.3 uvcclient==0.11.0 # homeassistant.components.vallox -vallox-websocket-api==3.3.0 +vallox-websocket-api==4.0.2 # homeassistant.components.rdw vehicle==2.0.0 diff --git a/tests/components/vallox/test_switch.py b/tests/components/vallox/test_switch.py index 95232045af1..4739e6c4645 100644 --- a/tests/components/vallox/test_switch.py +++ b/tests/components/vallox/test_switch.py @@ -1,4 +1,6 @@ """Tests for Vallox switch platform.""" +from unittest.mock import patch + import pytest from homeassistant.components.switch.const import DOMAIN as SWITCH_DOMAIN @@ -30,7 +32,9 @@ async def test_switch_entities( metrics = {metric_key: value} # Act - with patch_metrics(metrics=metrics): + with patch_metrics(metrics=metrics), patch( + "homeassistant.components.vallox.Vallox.set_settable_address" + ): await hass.config_entries.async_setup(mock_entry.entry_id) await hass.async_block_till_done() @@ -56,7 +60,9 @@ async def test_bypass_lock_switch_entitity_set( ) -> None: """Test bypass lock switch set.""" # Act - with patch_metrics(metrics={}), patch_metrics_set() as metrics_set: + with patch_metrics(metrics={}), patch_metrics_set() as metrics_set, patch( + "homeassistant.components.vallox.Vallox.set_settable_address" + ): await hass.config_entries.async_setup(mock_entry.entry_id) await hass.async_block_till_done() await hass.services.async_call(