mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Remove remove unreachable code in async_wait_for_mqtt_client (#118172)
This commit is contained in:
@@ -114,8 +114,6 @@ async def async_wait_for_mqtt_client(hass: HomeAssistant) -> bool:
|
||||
hass.data[DATA_MQTT_AVAILABLE] = state_reached_future
|
||||
else:
|
||||
state_reached_future = hass.data[DATA_MQTT_AVAILABLE]
|
||||
if state_reached_future.done():
|
||||
return state_reached_future.result()
|
||||
|
||||
try:
|
||||
async with asyncio.timeout(AVAILABILITY_TIMEOUT):
|
||||
|
Reference in New Issue
Block a user