From bc3610c8e1828c528ebd050630dee36093341903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksander=20=C5=BBarczy=C5=84ski?= Date: Fri, 29 Jan 2021 16:03:00 +0100 Subject: [PATCH] Add patch method to rest switch component (#45663) --- homeassistant/components/rest/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/rest/switch.py b/homeassistant/components/rest/switch.py index b6bd759d0bf..ea480d549f3 100644 --- a/homeassistant/components/rest/switch.py +++ b/homeassistant/components/rest/switch.py @@ -40,7 +40,7 @@ DEFAULT_NAME = "REST Switch" DEFAULT_TIMEOUT = 10 DEFAULT_VERIFY_SSL = True -SUPPORT_REST_METHODS = ["post", "put"] +SUPPORT_REST_METHODS = ["post", "put", "patch"] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( {