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

This commit is contained in:
Robert Svensson authored and GitHub committed 2020-06-04 14:25:50 +02:00
1 parent a6107198b9
commit 99318b7b11
6 files changed
+3 -15

No files matched your search

+1 -2
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