44ec9da9fb71f81f2d50d4df359f73c4434fb614,services/core/MasterDriverAgent/master_driver/interfaces/ecobee.py,Interface,_set_point,#Interface#Any#Any#,378

Before Change


        register = self.get_register_by_name(point_name)
        if register.read_only:
            raise IOError("Trying to write to a point configured read only: {}".format(point_name))
        if register.register_type == "status":
            raise RuntimeError("Status register does not support set_point")
        try:
            if register.register_type == "setting" or register.register_type == "hold":
                register.set_state(value)
            elif register.register_type in ["vacation", "programs"]:

After Change


        :param value: Intended update value
        :return: Updated state from remote API
        
        refresh = kwargs.get("Refresh")
        // Find the correct register by name, set its state, then fetch the new state based on the register"s type
        register = self.get_register_by_name(point_name)
        if register.read_only:
            raise IOError("Trying to write to a point configured read only: {}".format(point_name))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: VOLTTRON/volttron
Commit Name: 44ec9da9fb71f81f2d50d4df359f73c4434fb614
Time: 2020-06-22
Author: james.larson@pnnl.gov
File Name: services/core/MasterDriverAgent/master_driver/interfaces/ecobee.py
Class Name: Interface
Method Name: _set_point


Project Name: VOLTTRON/volttron
Commit Name: f4560aadbf6ff350e916a934b02e60c9292101a4
Time: 2020-06-02
Author: james.larson@pnnl.gov
File Name: services/core/MasterDriverAgent/master_driver/interfaces/ecobee.py
Class Name: Interface
Method Name: _set_point


Project Name: facebookresearch/ParlAI
Commit Name: c31547dacb9c6b65a8b2ddb316ef60a9f7c3200d
Time: 2017-06-23
Author: ahm@fb.com
File Name: parlai/agents/remote_agent/remote_agent.py
Class Name: ParsedRemoteAgent
Method Name: __init__