Skip to content

Commit 3cdb698

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9a64fca commit 3cdb698

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

tests/controllers/_device_state_monitor/controller.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
"""Tests for the DeviceStateMonitor controller."""
22

3-
from esphome_device_builder.controllers._device_state_monitor.controller import DeviceStateMonitor
4-
import pytest
53
from unittest.mock import MagicMock
64

5+
import pytest
6+
7+
from esphome_device_builder.controllers._device_state_monitor.controller import DeviceStateMonitor
8+
9+
710
@pytest.fixture
811
def monitor():
912
"""Fixture to provide a mock DeviceStateMonitor."""
@@ -14,9 +17,10 @@ def monitor():
1417
get_devices=MagicMock(return_value=[]),
1518
on_state_change=MagicMock(),
1619
on_ip_change=MagicMock(),
17-
on_queued_update_change=mock_on_queued # Pass the callback here
20+
on_queued_update_change=mock_on_queued, # Pass the callback here
1821
)
1922

23+
2024
def test_apply_queued_update(monitor):
2125
"""Test that apply_queued_update triggers the callback correctly."""
2226
device_name = "test_device"

0 commit comments

Comments
 (0)