mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Use core constants for ffmpeg_motion (#46137)
This commit is contained in:
parent
74053b5f2d
commit
19e9515bec
@ -14,13 +14,12 @@ from homeassistant.components.ffmpeg import (
|
|||||||
DATA_FFMPEG,
|
DATA_FFMPEG,
|
||||||
FFmpegBase,
|
FFmpegBase,
|
||||||
)
|
)
|
||||||
from homeassistant.const import CONF_NAME
|
from homeassistant.const import CONF_NAME, CONF_REPEAT
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
CONF_RESET = "reset"
|
CONF_RESET = "reset"
|
||||||
CONF_CHANGES = "changes"
|
CONF_CHANGES = "changes"
|
||||||
CONF_REPEAT = "repeat"
|
|
||||||
CONF_REPEAT_TIME = "repeat_time"
|
CONF_REPEAT_TIME = "repeat_time"
|
||||||
|
|
||||||
DEFAULT_NAME = "FFmpeg Motion"
|
DEFAULT_NAME = "FFmpeg Motion"
|
||||||
@ -88,7 +87,6 @@ class FFmpegMotion(FFmpegBinarySensor):
|
|||||||
|
|
||||||
def __init__(self, hass, manager, config):
|
def __init__(self, hass, manager, config):
|
||||||
"""Initialize FFmpeg motion binary sensor."""
|
"""Initialize FFmpeg motion binary sensor."""
|
||||||
|
|
||||||
super().__init__(config)
|
super().__init__(config)
|
||||||
self.ffmpeg = ffmpeg_sensor.SensorMotion(manager.binary, self._async_callback)
|
self.ffmpeg = ffmpeg_sensor.SensorMotion(manager.binary, self._async_callback)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user