mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add Balboa spa temperature range state control (high/low) (#115285)
* Add temperature range switch (high/low) to Balboa spa integration. * Change Balboa spa integration temperature range control from switch to select * Balboa spa integration: Fix ruff formatting * Balboa spa integration: increase test coverage * Balboa spa integration review fixes: Move instance attributes as class attributes. Fix code comments.
This commit is contained in:
@@ -5,7 +5,7 @@ from __future__ import annotations
|
||||
from collections.abc import Callable, Generator
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
from pybalboa.enums import HeatMode
|
||||
from pybalboa.enums import HeatMode, LowHighRange
|
||||
import pytest
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
@@ -60,5 +60,6 @@ def client_fixture() -> Generator[MagicMock, None, None]:
|
||||
client.heat_state = 2
|
||||
client.lights = []
|
||||
client.pumps = []
|
||||
client.temperature_range.state = LowHighRange.LOW
|
||||
|
||||
yield client
|
||||
|
||||
Reference in New Issue
Block a user