1
0
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:
Toni Korhonen
2024-04-13 11:44:02 +03:00
committed by GitHub
parent 127c27c9a7
commit 84a975b61e
6 changed files with 160 additions and 2 deletions

View File

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