def update_status(self, retry_count=<NUM_LIT:2>):
<EOL>cur_count = max(retry_count, <NUM_LIT:0>)<EOL>while cur_count >= <NUM_LIT:0>:<EOL><INDENT>try:<EOL><INDENT>self.__update_status()<EOL><DEDENT>except IOError as err:<EOL><INDENT>if self.print_errors:<EOL><INDENT>print("<STR_LIT>".format(err))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if not self.__is_valid_checksum(self.__in_buffer.raw):<EOL><INDENT>if self.print_errors:<EOL><INDENT>raise IOError("<STR_LIT>")<EOL><DEDENT><DEDENT>values = self.STRUCT_READ_VALUES_IN.unpack_from(self.__in_buffer, self.OFFSET_FRONT)<EOL>(self._current,<EOL>self._voltage,<EOL>self._power,<EOL>self._max_current,<EOL>self._max_power,<EOL>self._resistance,<EOL>output_state) = values[<NUM_LIT:3>:-<NUM_LIT:1>]<EOL>self._remote_control = (output_state & <NUM_LIT>) > <NUM_LIT:0><EOL>self._load_on = (output_state & <NUM_LIT>) > <NUM_LIT:0><EOL>self.wrong_polarity = (output_state & <NUM_LIT>) > <NUM_LIT:0><EOL>self.excessive_temp = (output_state & <NUM_LIT>) > <NUM_LIT:0><EOL>self.excessive_voltage = (output_state & <NUM_LIT>) > <NUM_LIT:0><EOL>self.excessive_power = (output_state & <NUM_LIT>) > <NUM_LIT:0><EOL>return None<EOL><DEDENT>cur_count -= <NUM_LIT:1><EOL><DEDENT>raise IOError("<STR_LIT>")<EOL>
Updates current values from load.
Must be called to get latest values for the following properties of class:
  current
  voltage
  power
  max current
  max power
  resistance
  local_control
  load_on
  wrong_polarity
  excessive_temp
  excessive_voltage
  excessive_power

:param retry_count: Number of times to ignore IOErrors and retry update
:return: None