Remove Axis option to enable/disable camera (#36420)
This commit is contained in:
parent
a6107198b9
commit
99318b7b11
6 changed files with 3 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue