shinnd
(Dave)
June 11, 2017, 11:30pm
1
RESTful command appears to support put but other components, like the RESTful switch do not. I understand that I can probably get the same switch behavior with a command switch, but it seems like the RESTful switch method would be cleaner.
rest command, with put method support
"""
Exposes regular rest commands as services.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/rest_command/
"""
import asyncio
import logging
import aiohttp
from aiohttp import hdrs
import async_timeout
import voluptuous as vol
from homeassistant.const import (
CONF_TIMEOUT, CONF_USERNAME, CONF_PASSWORD, CONF_URL, CONF_PAYLOAD,
CONF_METHOD)
from homeassistant.helpers.aiohttp_client import async_get_clientsession
import homeassistant.helpers.config_validation as cv
This file has been truncated. show original
fabaff
(Fabian Affolter)
June 12, 2017, 8:07am
2
home-assistant:dev
← fabaff:put-rest
opened 08:06AM - 12 Jun 17 UTC
Would be nice if you could test it and comment on the Pull request. Thanks.
1 Like
fabaff
(Fabian Affolter)
June 13, 2017, 5:33am
4
Will be shipped with 0.47.