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>if data['<STR_LIT>'] != "<STR_LIT>":<EOL><INDENT>self.__charger_state = False<EOL><DEDENT>else:<EOL><INDENT>self.__charger_state = True<EOL><DEDENT><DEDENT>
Update the charging state of the Tesla Vehicle.