def update(self):
self._controller.update(self._id, wake_if_asleep=False)<EOL>data = self._controller.get_charging_params(self._id)<EOL>if data and (time.time() - self.__manual_update_time > <NUM_LIT>):<EOL><INDENT>self.__lock_state = not ((data['<STR_LIT>']) and<EOL>(data['<STR_LIT>'] != '<STR_LIT>'))<EOL><DEDENT>
Update state of the charger lock.