parameters: (self)
return_statement: return True
docstring: Check if a forced update is required.
docstring_summary: Check if a forced update is required.
docstring_tokens: Check if a forced update is required .
function: def _update_forced(self):
          """Check if a forced update is required."""
          if self._set_update_forced:
              self._update_forced_time = datetime.utcnow()
              self._power_on_detected = datetime.min
              self._set_update_forced = False
              return False
  
          if not self._update_forced_time:
              return False
  
          call_time = datetime.utcnow()
          difference = (call_time - self._update_forced_time).total_seconds()
          if difference >= 10:
              self._update_forced_time = None
              return False
          return True
function_tokens: def _update_forced ( self ) : if self . _set_update_forced : self . _update_forced_time = datetime . utcnow ( ) self . _power_on_detected = datetime . min self . _set_update_forced = False return False if not self . _update_forced_time : return False call_time = datetime . utcnow ( ) difference = ( call_time - self . _update_forced_time ) . total_seconds ( ) if difference >= 10 : self . _update_forced_time = None return False return True