Files
core/tests/components
J. Nick Koston cf4dbcfebf Ensure screenlogic retries if the protocol adapter is still booting (#133444)
* Ensure screenlogic retries if the protocol adapter is still booting

If the protocol adapter is still booting, it will disconnect and never
retry

```
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/screenlogic/__init__.py", line 65, in async_setup_entry
    await gateway.async_connect(**connect_info)
  File "/usr/local/lib/python3.13/site-packages/screenlogicpy/gateway.py", line 142, in async_connect
    connectPkg = await async_connect_to_gateway(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/screenlogicpy/requests/login.py", line 107, in async_connect_to_gateway
    mac_address = await async_gateway_connect(transport, protocol, max_retries)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/screenlogicpy/requests/login.py", line 77, in async_gateway_connect
    raise ScreenLogicConnectionError("Host unexpectedly disconnected.")
screenlogicpy.const.common.ScreenLogicConnectionError: Host unexpectedly disconnected.
```

* coverage
2024-12-20 09:40:42 +00:00
..
2024-10-08 18:39:04 +02:00
2024-07-04 21:27:56 +02:00
2024-10-08 18:39:04 +02:00
2024-10-08 18:39:04 +02:00
2024-12-06 18:53:03 +01:00
2024-12-06 18:52:39 +01:00
2024-04-06 11:07:37 +02:00
2024-06-06 17:24:48 +02:00
2024-10-08 18:39:04 +02:00
2024-11-13 17:26:27 +01:00
2024-09-20 17:47:12 +02:00
2024-10-08 18:39:04 +02:00
2024-08-12 13:28:09 +02:00
2024-09-04 15:33:23 +02:00
2024-07-10 21:53:11 +02:00
2024-04-06 11:07:37 +02:00
2024-12-01 03:14:09 +00:00
2024-11-09 22:58:16 +01:00
2024-10-08 18:39:04 +02:00
2024-11-08 12:03:32 +01:00
2024-12-20 09:40:31 +00:00
2024-10-26 01:47:27 +02:00
2024-06-08 17:59:08 +02:00
2024-10-08 18:39:04 +02:00
2024-10-26 01:47:27 +02:00
2024-06-08 17:59:08 +02:00
2024-10-05 12:13:52 +02:00
2024-12-01 03:13:44 +00:00
2024-10-08 18:39:04 +02:00
2024-11-05 12:30:48 +01:00
2024-11-09 10:46:38 +01:00
2024-06-08 17:59:08 +02:00
2024-03-26 00:02:16 +01:00
2024-10-17 10:41:57 +02:00
2024-09-05 23:03:50 +02:00
2024-10-08 18:39:04 +02:00
2024-08-15 10:03:03 +02:00
2024-11-22 16:53:26 +01:00