-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split ffmpeg to compoment #3396
Conversation
727d3db
to
6239bbb
Compare
6239bbb
to
c625924
Compare
@@ -117,7 +115,7 @@ def _service_handle_restart(service): | |||
_devices = DEVICES | |||
|
|||
for device in _devices: | |||
device.reset_ffmpeg() | |||
device.restart_ffmpeg() | |||
|
|||
hass.services.register(DOMAIN, SERVICE_RESTART, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are registering the service binary_sensor/restart. That is very generic. Can you rename it to binary_sensor/ffmpeg_restart
@@ -117,7 +115,7 @@ def _service_handle_restart(service): | |||
_devices = DEVICES | |||
|
|||
for device in _devices: | |||
device.reset_ffmpeg() | |||
device.restart_ffmpeg() | |||
|
|||
hass.services.register(DOMAIN, SERVICE_RESTART, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why binary sensor has a restart service but camera has not ?
The service us allready |
Yes sir! On Wed, Sep 14, 2016, 22:03 Pascal Vizeli notifications@github.com wrote:
|
Getting some errors from this:
|
I've create a bugfix PR. Can you try to test this? Am 16.09.2016 4:31 PM schrieb "devdelay" notifications@github.com:
|
Add an optional extended description…
Description:
I work a new component (openalpr) they also use ffmpeg. We have a lot of ffmpeg device and it's cleaner to have a ffmpeg component and cleanup some duplication in sources.
Now it support cache for tests @balloob
Example entry for
configuration.yaml
(if applicable):Braking stuff
I move the
ffmpeg_bin
to component it self.Checklist:
If user exposed functionality or configuration variables are added/changed:
If code communicates with devices, web services, or a:
tox
run successfully. Your PR cannot be merged unless tests passREQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.