Bump vallox_websocket_api to 4.0.2 (#103339)

This commit is contained in:
Sebastian Lövdahl 2023-11-04 21:55:50 +02:00 committed by GitHub
parent 941239262a
commit c04db6a249
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 6 deletions

View file

@ -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:

View file

@ -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"]
}

View file

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

View file

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

View file

@ -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(