Remove remove unreachable code in async_wait_for_mqtt_client (#118172)

This commit is contained in:
Jan Bouwhuis 2024-05-26 16:04:03 +02:00 committed by GitHub
parent 8b3cad372e
commit 4a5c5fa311
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,8 +114,6 @@ async def async_wait_for_mqtt_client(hass: HomeAssistant) -> bool:
hass.data[DATA_MQTT_AVAILABLE] = state_reached_future hass.data[DATA_MQTT_AVAILABLE] = state_reached_future
else: else:
state_reached_future = hass.data[DATA_MQTT_AVAILABLE] state_reached_future = hass.data[DATA_MQTT_AVAILABLE]
if state_reached_future.done():
return state_reached_future.result()
try: try:
async with asyncio.timeout(AVAILABILITY_TIMEOUT): async with asyncio.timeout(AVAILABILITY_TIMEOUT):