a4eb975b595a5bf0a41f6a39b0cd6b9c01970e06,homeassistant/remote.py,,connect_remote_events,#Any#Any#,289
Before Change
data = {"host": to_api.host, "api_password": to_api.api_password}
if to_api.port is not None:
data["port"] = to_api.port
try:
from_api(METHOD_POST, URL_API_EVENT_FORWARD, data)
except ha.HomeAssistantError:
After Change
try:
req = from_api(METHOD_POST, URL_API_EVENT_FORWARD, data)
if req.status_code == 200:
return True
else:
_LOGGER.error(
"Error settign up event forwarding: %s - %s",
req.status_code, req.text)
return False
except ha.HomeAssistantError:
_LOGGER.exception("Error setting up event forwarding")
return False
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: home-assistant/home-assistant
Commit Name: a4eb975b595a5bf0a41f6a39b0cd6b9c01970e06
Time: 2014-11-28
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/remote.py
Class Name:
Method Name: connect_remote_events
Project Name: home-assistant/home-assistant
Commit Name: d16bc632da35a31957ba3ac399dab4769591af17
Time: 2017-03-07
Author: appzer@users.noreply.github.com
File Name: homeassistant/components/notify/pushsafer.py
Class Name: PushsaferNotificationService
Method Name: send_message
Project Name: home-assistant/home-assistant
Commit Name: a4eb975b595a5bf0a41f6a39b0cd6b9c01970e06
Time: 2014-11-28
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/remote.py
Class Name:
Method Name: disconnect_remote_events