Remove Axis option to enable/disable camera (#36420)

This commit is contained in:
Robert Svensson 2020-06-04 14:25:50 +02:00 committed by GitHub
parent a6107198b9
commit 99318b7b11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 15 deletions

View file

@ -2,7 +2,6 @@
from homeassistant.components import camera
from homeassistant.components.axis.const import (
CONF_CAMERA,
CONF_STREAM_PROFILE,
DOMAIN as AXIS_DOMAIN,
)
@ -70,7 +69,7 @@ async def test_camera_with_stream_profile(hass):
async def test_camera_disabled(hass):
"""Test that Axis camera platform is loaded properly but does not create camera entity."""
with patch.dict(ENTRY_OPTIONS, {CONF_CAMERA: False}):
with patch("axis.vapix.Params.image_format", new=None):
await setup_axis_integration(hass)
assert len(hass.states.async_entity_ids(CAMERA_DOMAIN)) == 0