class EcobeeData(object): """ Gets the latest data and update the states. """ def __init__(self, config_file): from pyecobee import Ecobee self.ecobee = Ecobee(config_file) @Throttle(MIN_TIME_BETWEEN_UPDATES) def update(self): """ Get the latest data from pyecobee. """ self.ecobee.update() _LOGGER.info("ecobee data updated successfully.")
class EcobeeData(object): """ Gets the latest data and update the states. """ def __init__(self, config_file): from pyecobee import Ecobee self.ecobee = Ecobee(config_file) @Throttle(MIN_TIME_BETWEEN_UPDATES) def update(self): """ Get the latest data from pyecobee. """ self.ecobee.update() _LOGGER.info("ecobee data updated successfully.")
class EcobeeData: """Get the latest data and update the states.""" def __init__(self, config_file): """Init the Ecobee data object.""" from pyecobee import Ecobee self.ecobee = Ecobee(config_file) @Throttle(MIN_TIME_BETWEEN_UPDATES) def update(self): """Get the latest data from pyecobee.""" self.ecobee.update() _LOGGER.debug("Ecobee data updated successfully")