mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Remove remove unreachable code in async_wait_for_mqtt_client (#118172)
This commit is contained in:
parent
8b3cad372e
commit
4a5c5fa311
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user