Don't access hass.data directly in generic camera test. (#68316)

This commit is contained in:
Dave T 2022-03-18 00:29:21 +00:00 committed by GitHub
parent 712c9d4a4f
commit 490c921763
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -280,7 +280,7 @@ async def test_setup_alternative_options(hass, hass_ws_client):
},
)
await hass.async_block_till_done()
assert hass.data["camera"].get_entity("camera.config_test")
assert hass.states.get("camera.config_test")
async def test_no_stream_source(hass, hass_client, hass_ws_client, fakeimgbytes_png):