Add Ombi integration (#26755)
* Add Ombi integration * Black * Remove trailing comma * Change dict.get to dict[key] for known keys * Remove monitored conditions from config * Define SCAN_INTERVAL for default scan interval * Adjust requests syntax and add music_requests * Remove Ombi object initialization * Move constants to const.py * Fix imports * Set pyombi requirement to version 0.1.3 * Add services.yaml * Add config schema and setup for integration * Set pyombi requirement to version 0.1.3 * Fix syntax for scan interval * Fix datetime import * Add all files from ombi component * Move imports around * Move imports around * Move pyombi import to top of module * Move scan_interval to sensor module * Add custom validator for urlbase * Add guard clause for discovery_info * Add service validation schemas and constants * Bump pyombi version * Adjust urlbase validation * Add exception warnings for irretrievable media * Bump pyombi * Change from .get to dict[key] * Change schema and conf variable names * Set return to return false * Remove unneeded return
This commit is contained in:
1 parent
5914475fe5
commit
60f0988435
8 files changed
+290
No files matched your search
@@ -0,0 +1,24 @@
|
||||
"""Support for Ombi."""
|
||||
ATTR_NAME = "name"
|
||||
ATTR_SEASON = "season"
|
||||
|
||||
CONF_URLBASE = "urlbase"
|
||||
|
||||
DEFAULT_NAME = DOMAIN = "ombi"
|
||||
DEFAULT_PORT = 5000
|
||||
DEFAULT_SEASON = "latest"
|
||||
DEFAULT_SSL = False
|
||||
DEFAULT_URLBASE = ""
|
||||
|
||||
SERVICE_MOVIE_REQUEST = "submit_movie_request"
|
||||
SERVICE_MUSIC_REQUEST = "submit_music_request"
|
||||
SERVICE_TV_REQUEST = "submit_tv_request"
|
||||
|
||||
SENSOR_TYPES = {
|
||||
"movies": {"type": "Movie requests", "icon": "mdi:movie"},
|
||||
"tv": {"type": "TV show requests", "icon": "mdi:television-classic"},
|
||||
"music": {"type": "Music album requests", "icon": "mdi:album"},
|
||||
"pending": {"type": "Pending requests", "icon": "mdi:clock-alert-outline"},
|
||||
"approved": {"type": "Approved requests", "icon": "mdi:check"},
|
||||
"available": {"type": "Available requests", "icon": "mdi:download"},
|
||||
}
|
||||
Reference in new issue
Block a user