9a25054a0d884b4b6690483151ec2d099124c0ae,homeassistant/components/evohome.py,,setup,#Any#Any#,59

Before Change


    try:
        // There"s a bug in evohomeclient2 v0.2.7: the client.__init__() sets
        // the root loglevel when EvohomeClient(debug=?), so remember it now...
        log_level = logging.getLogger().getEffectiveLevel()

        client = EvohomeClient(
            evo_data["params"][CONF_USERNAME],
            evo_data["params"][CONF_PASSWORD],

After Change


    evo_data["status"] = {}

    // Redact any installation data we"ll never need
    for loc in client.installation_info:
        loc["locationInfo"]["locationId"] = "REDACTED"
        loc["locationInfo"]["locationOwner"] = "REDACTED"
        loc["locationInfo"]["streetAddress"] = "REDACTED"
        loc["locationInfo"]["city"] = "REDACTED"
        loc[GWS][0]["gatewayInfo"] = "REDACTED"

    // Pull down the installation configuration
    loc_idx = evo_data["params"][CONF_LOCATION_IDX]

    try:
        evo_data["config"] = client.installation_info[loc_idx]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: 9a25054a0d884b4b6690483151ec2d099124c0ae
Time: 2018-11-27
Author: david@bonnes.me
File Name: homeassistant/components/evohome.py
Class Name:
Method Name: setup


Project Name: home-assistant/home-assistant
Commit Name: 9d848731d903a8ee2296bbfc6746f4eb5143a446
Time: 2016-04-11
Author: jaharkes@cs.cmu.edu
File Name: homeassistant/components/sensor/nest.py
Class Name:
Method Name: setup_platform


Project Name: automl/HPOlib2
Commit Name: c5569431efa449c71693453c63c0e58db933cb4e
Time: 2020-03-17
Author: muller-phil@gmx.net
File Name: examples/XGBoost_local.py
Class Name:
Method Name: