def lock_update(self):
        if self.is_update_locked():
            return
        self.lock = True
        self.last_lock_time = time.time()
Lock the update since TC clean takes some time to update.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/thinkingcleaner.py/ThinkingCleanerSwitch.lock_update