Do async_setup_platform in background (#36244)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
1 parent
d488c779fc
commit
276f3afb00
161 files changed
+1184
-305
No files matched your search
@@ -47,6 +47,7 @@ async def test_arm_home_no_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -73,6 +74,7 @@ async def test_arm_home_no_pending_when_code_not_req(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -98,6 +100,7 @@ async def test_arm_home_with_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -137,6 +140,7 @@ async def test_arm_home_with_invalid_code(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -162,6 +166,7 @@ async def test_arm_away_no_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -188,6 +193,7 @@ async def test_arm_away_no_pending_when_code_not_req(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -213,6 +219,7 @@ async def test_arm_home_with_template_code(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -239,6 +246,7 @@ async def test_arm_away_with_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -278,6 +286,7 @@ async def test_arm_away_with_invalid_code(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -303,6 +312,7 @@ async def test_arm_night_no_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -329,6 +339,7 @@ async def test_arm_night_no_pending_when_code_not_req(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -354,6 +365,7 @@ async def test_arm_night_with_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -398,6 +410,7 @@ async def test_arm_night_with_invalid_code(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -422,6 +435,7 @@ async def test_trigger_no_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -458,6 +472,7 @@ async def test_trigger_with_delay(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -500,6 +515,7 @@ async def test_trigger_zero_trigger_time(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -525,6 +541,7 @@ async def test_trigger_zero_trigger_time_with_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -550,6 +567,7 @@ async def test_trigger_with_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -602,6 +620,7 @@ async def test_trigger_with_unused_specific_delay(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -646,6 +665,7 @@ async def test_trigger_with_specific_delay(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -689,6 +709,7 @@ async def test_trigger_with_pending_and_delay(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -745,6 +766,7 @@ async def test_trigger_with_pending_and_specific_delay(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -798,6 +820,7 @@ async def test_armed_home_with_specific_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -830,6 +853,7 @@ async def test_armed_away_with_specific_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -862,6 +886,7 @@ async def test_armed_night_with_specific_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -896,6 +921,7 @@ async def test_trigger_with_specific_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -939,6 +965,7 @@ async def test_trigger_with_disarm_after_trigger(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -975,6 +1002,7 @@ async def test_trigger_with_zero_specific_trigger_time(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1001,6 +1029,7 @@ async def test_trigger_with_unused_zero_specific_trigger_time(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1036,6 +1065,7 @@ async def test_trigger_with_specific_trigger_time(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1072,6 +1102,7 @@ async def test_trigger_with_no_disarm_after_trigger(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1112,6 +1143,7 @@ async def test_back_to_back_trigger_with_no_disarm_after_trigger(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1164,6 +1196,7 @@ async def test_disarm_while_pending_trigger(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1203,6 +1236,7 @@ async def test_disarm_during_trigger_with_invalid_code(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1242,6 +1276,7 @@ async def test_disarm_with_template_code(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1278,6 +1313,7 @@ async def test_arm_custom_bypass_no_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1304,6 +1340,7 @@ async def test_arm_custom_bypass_no_pending_when_code_not_req(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1329,6 +1366,7 @@ async def test_arm_custom_bypass_with_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1368,6 +1406,7 @@ async def test_arm_custom_bypass_with_invalid_code(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1392,6 +1431,7 @@ async def test_armed_custom_bypass_with_specific_pending(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1428,6 +1468,7 @@ async def test_arm_away_after_disabled_disarmed(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
entity_id = "alarm_control_panel.test"
|
||||
|
||||
@@ -1499,6 +1540,7 @@ async def test_restore_armed_state(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
state = hass.states.get("alarm_control_panel.test")
|
||||
assert state
|
||||
@@ -1525,6 +1567,7 @@ async def test_restore_disarmed_state(hass):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
state = hass.states.get("alarm_control_panel.test")
|
||||
assert state
|
||||
|
||||
Reference in new issue
Block a user