Skip to content

Commit 47549d3

Browse files
committed
chore: Change return type of caplog
1 parent 9b7d911 commit 47549d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/devices/test_mqtt_channel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ async def setup_message_handler(mqtt_session: Mock, mqtt_channel: MqttChannel) -
8686
@pytest.fixture
8787
def warning_caplog(
8888
caplog: pytest.LogCaptureFixture,
89-
) -> Generator[pytest.LogCaptureFixture]:
89+
) -> pytest.LogCaptureFixture:
9090
"""Fixture to capture warning messages."""
9191
caplog.set_level(logging.WARNING)
92-
yield caplog
92+
return caplog
9393

9494

9595
async def home_home_data_no_devices() -> HomeData:

0 commit comments

Comments
 (0)