Add support for using a single endpoint for rest data (#46711)
This commit is contained in:
parent
71586b7661
commit
2f3c2f5f4d
15 changed files with 858 additions and 273 deletions
20
homeassistant/components/rest/const.py
Normal file
20
homeassistant/components/rest/const.py
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue