mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Bump vallox_websocket_api to 4.0.2 (#103339)
This commit is contained in:
parent
941239262a
commit
c04db6a249
@ -135,7 +135,7 @@ class ValloxState:
|
|||||||
@property
|
@property
|
||||||
def sw_version(self) -> str:
|
def sw_version(self) -> str:
|
||||||
"""Return the SW version."""
|
"""Return the SW version."""
|
||||||
return cast(str, _api_get_sw_version(self.metric_cache))
|
return _api_get_sw_version(self.metric_cache)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def uuid(self) -> UUID | None:
|
def uuid(self) -> UUID | None:
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/vallox",
|
"documentation": "https://www.home-assistant.io/integrations/vallox",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["vallox_websocket_api"],
|
"loggers": ["vallox_websocket_api"],
|
||||||
"requirements": ["vallox-websocket-api==3.3.0"]
|
"requirements": ["vallox-websocket-api==4.0.2"]
|
||||||
}
|
}
|
||||||
|
@ -2658,7 +2658,7 @@ url-normalize==1.4.3
|
|||||||
uvcclient==0.11.0
|
uvcclient==0.11.0
|
||||||
|
|
||||||
# homeassistant.components.vallox
|
# homeassistant.components.vallox
|
||||||
vallox-websocket-api==3.3.0
|
vallox-websocket-api==4.0.2
|
||||||
|
|
||||||
# homeassistant.components.rdw
|
# homeassistant.components.rdw
|
||||||
vehicle==2.0.0
|
vehicle==2.0.0
|
||||||
|
@ -1976,7 +1976,7 @@ url-normalize==1.4.3
|
|||||||
uvcclient==0.11.0
|
uvcclient==0.11.0
|
||||||
|
|
||||||
# homeassistant.components.vallox
|
# homeassistant.components.vallox
|
||||||
vallox-websocket-api==3.3.0
|
vallox-websocket-api==4.0.2
|
||||||
|
|
||||||
# homeassistant.components.rdw
|
# homeassistant.components.rdw
|
||||||
vehicle==2.0.0
|
vehicle==2.0.0
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
"""Tests for Vallox switch platform."""
|
"""Tests for Vallox switch platform."""
|
||||||
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.switch.const import DOMAIN as SWITCH_DOMAIN
|
from homeassistant.components.switch.const import DOMAIN as SWITCH_DOMAIN
|
||||||
@ -30,7 +32,9 @@ async def test_switch_entities(
|
|||||||
metrics = {metric_key: value}
|
metrics = {metric_key: value}
|
||||||
|
|
||||||
# Act
|
# 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.config_entries.async_setup(mock_entry.entry_id)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
@ -56,7 +60,9 @@ async def test_bypass_lock_switch_entitity_set(
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Test bypass lock switch set."""
|
"""Test bypass lock switch set."""
|
||||||
# Act
|
# 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.config_entries.async_setup(mock_entry.entry_id)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user