a4eb975b595a5bf0a41f6a39b0cd6b9c01970e06,homeassistant/remote.py,,disconnect_remote_events,#Any#Any#,304
Before Change
Disconnects forwarding events from from_api to to_api.
data = {"host": to_api.host, "_METHOD": "DELETE"}
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_DELETE, URL_API_EVENT_FORWARD, data)
if req.status_code == 200:
return True
else:
_LOGGER.error(
"Error removing event forwarding: %s - %s",
req.status_code, req.text)
return False
except ha.HomeAssistantError:
_LOGGER.exception("Error removing an event forwarder")
return False
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
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: disconnect_remote_events
Project Name: home-assistant/home-assistant
Commit Name: d4bd5a180ce9c7dc39b0a00000307148ca6b6303
Time: 2019-08-25
Author: mail@dahoiv.net
File Name: homeassistant/components/opengarage/cover.py
Class Name: OpenGarageCover
Method Name: _push_button
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