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

Before Change



    from evohomeclient2 import EvohomeClient

    _LOGGER.debug("setup(): API call [4 request(s)]: client.__init__()...")

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

After Change


                "Resolve any errors and restart HA."
            )

        elif err.response.status_code == HTTP_TOO_MANY_REQUESTS:
            _LOGGER.error(
                "setup(): Failed to connect with the vendor"s web servers. "
                "You have exceeded the api rate limit. Unable to continue. "
                "Wait a while (say 10 minutes) and restart HA."
            )

        else:
            raise  // we dont expect/handle any other HTTPErrors
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: deeptools/HiCExplorer
Commit Name: 54320c314f235d369ef86bc9a6f2f5acf2526275
Time: 2020-06-22
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/hicMergeDomains.py
Class Name:
Method Name: main


Project Name: home-assistant/home-assistant
Commit Name: d8560a244cf860c710b2833f4552f6e60375a624
Time: 2017-01-16
Author: duoxi.lian@gmail.com
File Name: homeassistant/components/climate/ecobee.py
Class Name: Thermostat
Method Name: set_temperature