UniFi Protect test refactoring (#63486)

* UniFi Protect test refactoring

* More pylint fixes

* Use load_fixture helper

* yield to return where able
This commit is contained in:
Christopher Bailey 2022-01-05 13:29:59 -05:00 committed by GitHub
parent 8864492e35
commit d0d5222bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 419 additions and 109 deletions

View file

@ -37,7 +37,7 @@ async def camera_fixture(
assert_entity_counts(hass, Platform.BUTTON, 1, 0)
yield (camera_obj, "button.test_camera_reboot_device")
return (camera_obj, "button.test_camera_reboot_device")
async def test_button(