mirror of
https://github.com/esphome/esphome.git
synced 2025-10-22 19:53:46 +01:00
tests
This commit is contained in:
@@ -68,7 +68,9 @@ async def test_sensor_filters_sliding_window(
|
||||
|
||||
# Get the sensor name from the key mapping
|
||||
sensor_name = key_to_sensor.get(state.key)
|
||||
if sensor_name and sensor_name in sensor_states:
|
||||
if not sensor_name or sensor_name not in sensor_states:
|
||||
return
|
||||
|
||||
sensor_states[sensor_name].append(state.state)
|
||||
|
||||
# Check if we received the expected final value
|
||||
|
Reference in New Issue
Block a user