We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2bcfe8 commit e5fdc18Copy full SHA for e5fdc18
tests/test_tado.py
@@ -624,3 +624,13 @@ async def test_async_init_with_refresh_token() -> None:
624
assert tado.device_activation_status == DeviceActivationStatus.NOT_STARTED
625
await tado.async_init()
626
assert tado.device_activation_status == DeviceActivationStatus.COMPLETED
627
+
628
629
+async def test_login_device_flow_already_in_progress() -> None:
630
+ """Ensure calling login_device_flow again raises TadoError."""
631
+ tado = Tado()
632
+ tado._device_activation_status = DeviceActivationStatus.PENDING
633
+ with pytest.raises(
634
+ TadoError, match="Device activation already in progress or completed"
635
+ ):
636
+ await tado.login_device_flow()
0 commit comments