Add support for using a single endpoint for rest data (#46711)

This commit is contained in:
J. Nick Koston 2021-02-19 19:44:15 -10:00 committed by GitHub
parent 71586b7661
commit 2f3c2f5f4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 858 additions and 273 deletions

View file

@ -0,0 +1,20 @@
"""The rest component constants."""
DOMAIN = "rest"
DEFAULT_METHOD = "GET"
DEFAULT_VERIFY_SSL = True
DEFAULT_FORCE_UPDATE = False
DEFAULT_BINARY_SENSOR_NAME = "REST Binary Sensor"
DEFAULT_SENSOR_NAME = "REST Sensor"
CONF_JSON_ATTRS = "json_attributes"
CONF_JSON_ATTRS_PATH = "json_attributes_path"
REST_IDX = "rest_idx"
PLATFORM_IDX = "platform_idx"
COORDINATOR = "coordinator"
REST = "rest"
METHODS = ["POST", "GET"]