Support Axis stream profile and configuring it through options flow (#36322)
* Support stream profile and configuring it through options flow * Options flow test * Allow configuration of not using a stream profile * Shorten default stream profile string
This commit is contained in:
1 parent
47706dac1a
commit
cf6043fc2d
9 files changed
+220
-45
No files matched your search
@@ -31,7 +31,9 @@ from .const import (
|
||||
CONF_CAMERA,
|
||||
CONF_EVENTS,
|
||||
CONF_MODEL,
|
||||
CONF_STREAM_PROFILE,
|
||||
DEFAULT_EVENTS,
|
||||
DEFAULT_STREAM_PROFILE,
|
||||
DEFAULT_TRIGGER_TIME,
|
||||
DOMAIN as AXIS_DOMAIN,
|
||||
LOGGER,
|
||||
@@ -86,6 +88,13 @@ class AxisNetworkDevice:
|
||||
"""Config entry option defining if platforms based on events should be created."""
|
||||
return self.config_entry.options.get(CONF_EVENTS, DEFAULT_EVENTS)
|
||||
|
||||
@property
|
||||
def option_stream_profile(self):
|
||||
"""Config entry option defining what stream profile camera platform should use."""
|
||||
return self.config_entry.options.get(
|
||||
CONF_STREAM_PROFILE, DEFAULT_STREAM_PROFILE
|
||||
)
|
||||
|
||||
@property
|
||||
def option_trigger_time(self):
|
||||
"""Config entry option defining minimum number of seconds to keep trigger high."""
|
||||
|
||||
Reference in new issue
Block a user