mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
This code never properly worked because the incorrect variable was used
This commit is contained in:
parent
e140e9b8ab
commit
d00e63486a
@ -63,7 +63,7 @@ class RestNotificationService(BaseNotificationService):
|
|||||||
data[self._title_param_name] = kwargs.get(ATTR_TITLE)
|
data[self._title_param_name] = kwargs.get(ATTR_TITLE)
|
||||||
|
|
||||||
if self._target_param_name is not None:
|
if self._target_param_name is not None:
|
||||||
data[self._title_param_name] = kwargs.get(ATTR_TARGET)
|
data[self._target_param_name] = kwargs.get(ATTR_TARGET)
|
||||||
|
|
||||||
if self._method == 'POST':
|
if self._method == 'POST':
|
||||||
response = requests.post(self._resource, data=data, timeout=10)
|
response = requests.post(self._resource, data=data, timeout=10)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user