1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 03:42:20 +01:00
This commit is contained in:
J. Nick Koston
2025-08-20 13:06:18 -05:00
parent 757ad2ff96
commit 2c44198cb5
2 changed files with 2 additions and 37 deletions

View File

@@ -5,7 +5,7 @@ from __future__ import annotations
import asyncio
import re
from aioesphomeapi import ButtonInfo, NumberInfo, SelectInfo, SensorInfo, SwitchInfo
from aioesphomeapi import ButtonInfo, NumberInfo, SelectInfo, SwitchInfo
import pytest
from .types import APIClientConnectedFactory, RunCompiledFunction
@@ -95,16 +95,6 @@ async def test_multi_device_preferences(
]
assert len(selects) == 3, f"Expected 3 'Mode' selects, got {len(selects)}"
# Check sensors for switch state monitoring
state_sensors = [
e
for e in entities
if isinstance(e, SensorInfo) and "Switch State" in e.name
]
assert len(state_sensors) == 3, (
f"Expected 3 'Switch State' sensors, got {len(state_sensors)}"
)
# Find the test button entity to trigger preference logging
buttons = [e for e in entities if isinstance(e, ButtonInfo)]
test_button = next((b for b in buttons if b.name == "Test Preferences"), None)