Create a motionEye integration (#48239)

This commit is contained in:
Dermot Duffy 2021-04-23 23:00:28 -07:00 committed by GitHub
parent a380632384
commit bbe58091a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 1387 additions and 0 deletions

View file

@ -0,0 +1,20 @@
"""Constants for the motionEye integration."""
from datetime import timedelta
DOMAIN = "motioneye"
CONF_CONFIG_ENTRY = "config_entry"
CONF_CLIENT = "client"
CONF_COORDINATOR = "coordinator"
CONF_ADMIN_PASSWORD = "admin_password"
CONF_ADMIN_USERNAME = "admin_username"
CONF_SURVEILLANCE_USERNAME = "surveillance_username"
CONF_SURVEILLANCE_PASSWORD = "surveillance_password"
DEFAULT_SCAN_INTERVAL = timedelta(seconds=30)
MOTIONEYE_MANUFACTURER = "motionEye"
SIGNAL_CAMERA_ADD = f"{DOMAIN}_camera_add_signal." "{}"
SIGNAL_CAMERA_REMOVE = f"{DOMAIN}_camera_remove_signal." "{}"
TYPE_MOTIONEYE_MJPEG_CAMERA = "motioneye_mjpeg_camera"