mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Allow put as method (#8004)
This commit is contained in:
committed by
Paulus Schoutsen
parent
2bf781185f
commit
843f8ce9ee
@@ -97,11 +97,13 @@ class TestRestSwitch:
|
||||
"""Setup things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
self.name = 'foo'
|
||||
self.method = 'post'
|
||||
self.resource = 'http://localhost/'
|
||||
self.body_on = Template('on', self.hass)
|
||||
self.body_off = Template('off', self.hass)
|
||||
self.switch = rest.RestSwitch(self.hass, self.name, self.resource,
|
||||
self.body_on, self.body_off, None, 10)
|
||||
self.switch = rest.RestSwitch(
|
||||
self.hass, self.name, self.resource, self.method, self.body_on,
|
||||
self.body_off, None, 10)
|
||||
|
||||
def teardown_method(self):
|
||||
"""Stop everything that was started."""
|
||||
|
||||
Reference in New Issue
Block a user